]> git.donarmstrong.com Git - tmk_firmware.git/commitdiff
Change IS_COMMAND.(M0110)
authortmk <nobody@nowhere>
Mon, 3 Dec 2012 06:56:59 +0000 (15:56 +0900)
committertmk <nobody@nowhere>
Wed, 5 Dec 2012 08:53:41 +0000 (17:53 +0900)
converter/m0110_usb/README.md
converter/m0110_usb/config.h

index 059b840c31cfc19f9f84ac142f288d72a073f5c3..d3fad2a089d28a08af8254ecad94332826a832fe 100644 (file)
@@ -120,5 +120,7 @@ Debug
 -----
 You can use [PJRC HID listen](http://www.pjrc.com/teensy/hid_listen.html) to see debug output.
 
-The converter has some functions for debug, press `Alt+Gui+H` simultaneously to get help.
+The converter has some functions for debug, press `<magickey>+H` simultaneously to get help.
 These function is totally undocumented, tentative, inconsistent and buggy.
+
+magickey: Shift+Option+Command(Shift+Alt+Gui or Shift+Alt+Control)
index b1b971ec98a5e4d115039b21ed61c5385173a317..be00259e6b6fe88a69cbb51b50030c0935c195ac 100644 (file)
@@ -36,10 +36,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* Locking Caps Lock support */
 //#define MATRIX_HAS_LOCKING_CAPS
 
-/* Backspace for command key */
-#define BACKSPACE_CODE  0x33
+/* magic key */
 #define IS_COMMAND() ( \
-    matrix_is_on((BACKSPACE_CODE>>3)&0x0F, BACKSPACE_CODE&0x07) \
+    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT) | MOD_BIT(KC_LGUI)) || \
+    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT) | MOD_BIT(KC_LCTL)) \
 )