From 7aca01ab809768a5007fba889b436e74e45a906d Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 3 Dec 2012 15:56:59 +0900 Subject: [PATCH] Change IS_COMMAND.(M0110) --- converter/m0110_usb/README.md | 4 +++- converter/m0110_usb/config.h | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/converter/m0110_usb/README.md b/converter/m0110_usb/README.md index 059b840c3..d3fad2a08 100644 --- a/converter/m0110_usb/README.md +++ b/converter/m0110_usb/README.md @@ -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 `+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) diff --git a/converter/m0110_usb/config.h b/converter/m0110_usb/config.h index b1b971ec9..be00259e6 100644 --- a/converter/m0110_usb/config.h +++ b/converter/m0110_usb/config.h @@ -36,10 +36,10 @@ along with this program. If not, see . /* 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)) \ )