aboutsummaryrefslogtreecommitdiff
path: root/hhkb/config_vusb.h
diff options
context:
space:
mode:
Diffstat (limited to 'hhkb/config_vusb.h')
-rw-r--r--hhkb/config_vusb.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/hhkb/config_vusb.h b/hhkb/config_vusb.h
index 115b73de3..268644849 100644
--- a/hhkb/config_vusb.h
+++ b/hhkb/config_vusb.h
@@ -18,7 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18#ifndef CONFIG_H 18#ifndef CONFIG_H
19#define CONFIG_H 19#define CONFIG_H
20 20
21
22#define VENDOR_ID 0xFEED 21#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0xC0FE 22#define PRODUCT_ID 0xC0FE
24// TODO: share these strings with usbconfig.h 23// TODO: share these strings with usbconfig.h
@@ -34,11 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
34 33
35 34
36/* key combination for command */ 35/* key combination for command */
37#define IS_COMMAND() ( \ 36#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KB_LSHIFT) | MOD_BIT(KB_RSHIFT)))
38 keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) || \
39 keyboard_report->mods == (BIT_LCTRL | BIT_RSHIFT) \
40)
41
42 37
43/* mouse keys */ 38/* mouse keys */
44#ifdef MOUSEKEY_ENABLE 39#ifdef MOUSEKEY_ENABLE
@@ -46,4 +41,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
46#endif 41#endif
47 42
48 43
44#define DEBUG_LED 1
45#define DEBUG_LED_CONFIG (DDRD |= (1<<4))
46#define DEBUG_LED_OFF (PORTD |= (1<<4))
47#define DEBUG_LED_ON (PORTD &= ~(1<<4))
48
49#endif 49#endif