diff options
author | tmk <nobody@nowhere> | 2013-04-12 11:21:54 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-04-12 11:25:59 +0900 |
commit | 09e1eded8ba15aa91c37d703c6a85a896741f19a (patch) | |
tree | 4555638ba356bcbe28baaa557516ba0a074845f6 | |
parent | be8ea3c0940aabb55281863743c7e7d31424c573 (diff) |
Add media eject key support from tufty
-rw-r--r-- | common/keycode.h | 4 | ||||
-rw-r--r-- | common/report.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/common/keycode.h b/common/keycode.h index aea630846b..acbec07d20 100644 --- a/common/keycode.h +++ b/common/keycode.h @@ -140,6 +140,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #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 4801027687..02deb7797e 100644 --- a/common/report.h +++ b/common/report.h @@ -43,6 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #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 } |