From 09e1eded8ba15aa91c37d703c6a85a896741f19a Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 12 Apr 2013 11:21:54 +0900 Subject: [PATCH] Add media eject key support from tufty --- common/keycode.h | 4 +++- common/report.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/keycode.h b/common/keycode.h index aea63084..acbec07d 100644 --- a/common/keycode.h +++ b/common/keycode.h @@ -140,6 +140,7 @@ along with this program. If not, see . #define KC_MSTP KC_MEDIA_STOP #define KC_MPLY KC_MEDIA_PLAY_PAUSE #define KC_MSEL KC_MEDIA_SELECT +#define KC_EJCT KC_MEDIA_EJECT #define KC_MAIL KC_MAIL #define KC_CALC KC_CALCULATOR #define KC_MYCM KC_MY_COMPUTER @@ -406,6 +407,7 @@ enum internal_special_keycodes { KC_MEDIA_STOP, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_SELECT, + KC_MEDIA_EJECT, KC_MAIL, KC_CALCULATOR, KC_MY_COMPUTER, @@ -415,7 +417,7 @@ enum internal_special_keycodes { KC_WWW_FORWARD, KC_WWW_STOP, KC_WWW_REFRESH, - KC_WWW_FAVORITES, /* 0xB9 */ + KC_WWW_FAVORITES, /* 0xBA */ /* Fn key */ KC_FN0 = 0xC0, diff --git a/common/report.h b/common/report.h index 48010276..02deb779 100644 --- a/common/report.h +++ b/common/report.h @@ -43,6 +43,7 @@ along with this program. If not, see . #define TRANSPORT_NEXT_TRACK 0x00B5 #define TRANSPORT_PREV_TRACK 0x00B6 #define TRANSPORT_STOP 0x00B7 +#define TRANSPORT_STOP_EJECT 0x00CC #define TRANSPORT_PLAY_PAUSE 0x00CD /* application launch */ #define AL_CC_CONFIG 0x0183 @@ -116,6 +117,7 @@ typedef struct { (key == KC_MEDIA_NEXT_TRACK ? TRANSPORT_NEXT_TRACK : \ (key == KC_MEDIA_PREV_TRACK ? TRANSPORT_PREV_TRACK : \ (key == KC_MEDIA_STOP ? TRANSPORT_STOP : \ + (key == KC_MEDIA_EJECT ? TRANSPORT_STOP_EJECT : \ (key == KC_MEDIA_PLAY_PAUSE ? TRANSPORT_PLAY_PAUSE : \ (key == KC_MEDIA_SELECT ? AL_CC_CONFIG : \ (key == KC_MAIL ? AL_EMAIL : \ @@ -127,7 +129,7 @@ typedef struct { (key == KC_WWW_FORWARD ? AC_FORWARD : \ (key == KC_WWW_STOP ? AC_STOP : \ (key == KC_WWW_REFRESH ? AC_REFRESH : \ - (key == KC_WWW_FAVORITES ? AC_BOOKMARKS : 0)))))))))))))))))) + (key == KC_WWW_FAVORITES ? AC_BOOKMARKS : 0))))))))))))))))))) #ifdef __cplusplus }