Add media eject key support from tufty

This commit is contained in:
tmk 2013-04-12 11:21:54 +09:00
parent be8ea3c094
commit 09e1eded8b
2 changed files with 6 additions and 2 deletions

View File

@ -140,6 +140,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define KC_MSTP KC_MEDIA_STOP #define KC_MSTP KC_MEDIA_STOP
#define KC_MPLY KC_MEDIA_PLAY_PAUSE #define KC_MPLY KC_MEDIA_PLAY_PAUSE
#define KC_MSEL KC_MEDIA_SELECT #define KC_MSEL KC_MEDIA_SELECT
#define KC_EJCT KC_MEDIA_EJECT
#define KC_MAIL KC_MAIL #define KC_MAIL KC_MAIL
#define KC_CALC KC_CALCULATOR #define KC_CALC KC_CALCULATOR
#define KC_MYCM KC_MY_COMPUTER #define KC_MYCM KC_MY_COMPUTER
@ -406,6 +407,7 @@ enum internal_special_keycodes {
KC_MEDIA_STOP, KC_MEDIA_STOP,
KC_MEDIA_PLAY_PAUSE, KC_MEDIA_PLAY_PAUSE,
KC_MEDIA_SELECT, KC_MEDIA_SELECT,
KC_MEDIA_EJECT,
KC_MAIL, KC_MAIL,
KC_CALCULATOR, KC_CALCULATOR,
KC_MY_COMPUTER, KC_MY_COMPUTER,
@ -415,7 +417,7 @@ enum internal_special_keycodes {
KC_WWW_FORWARD, KC_WWW_FORWARD,
KC_WWW_STOP, KC_WWW_STOP,
KC_WWW_REFRESH, KC_WWW_REFRESH,
KC_WWW_FAVORITES, /* 0xB9 */ KC_WWW_FAVORITES, /* 0xBA */
/* Fn key */ /* Fn key */
KC_FN0 = 0xC0, KC_FN0 = 0xC0,

View File

@ -43,6 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define TRANSPORT_NEXT_TRACK 0x00B5 #define TRANSPORT_NEXT_TRACK 0x00B5
#define TRANSPORT_PREV_TRACK 0x00B6 #define TRANSPORT_PREV_TRACK 0x00B6
#define TRANSPORT_STOP 0x00B7 #define TRANSPORT_STOP 0x00B7
#define TRANSPORT_STOP_EJECT 0x00CC
#define TRANSPORT_PLAY_PAUSE 0x00CD #define TRANSPORT_PLAY_PAUSE 0x00CD
/* application launch */ /* application launch */
#define AL_CC_CONFIG 0x0183 #define AL_CC_CONFIG 0x0183
@ -116,6 +117,7 @@ typedef struct {
(key == KC_MEDIA_NEXT_TRACK ? TRANSPORT_NEXT_TRACK : \ (key == KC_MEDIA_NEXT_TRACK ? TRANSPORT_NEXT_TRACK : \
(key == KC_MEDIA_PREV_TRACK ? TRANSPORT_PREV_TRACK : \ (key == KC_MEDIA_PREV_TRACK ? TRANSPORT_PREV_TRACK : \
(key == KC_MEDIA_STOP ? TRANSPORT_STOP : \ (key == KC_MEDIA_STOP ? TRANSPORT_STOP : \
(key == KC_MEDIA_EJECT ? TRANSPORT_STOP_EJECT : \
(key == KC_MEDIA_PLAY_PAUSE ? TRANSPORT_PLAY_PAUSE : \ (key == KC_MEDIA_PLAY_PAUSE ? TRANSPORT_PLAY_PAUSE : \
(key == KC_MEDIA_SELECT ? AL_CC_CONFIG : \ (key == KC_MEDIA_SELECT ? AL_CC_CONFIG : \
(key == KC_MAIL ? AL_EMAIL : \ (key == KC_MAIL ? AL_EMAIL : \
@ -127,7 +129,7 @@ typedef struct {
(key == KC_WWW_FORWARD ? AC_FORWARD : \ (key == KC_WWW_FORWARD ? AC_FORWARD : \
(key == KC_WWW_STOP ? AC_STOP : \ (key == KC_WWW_STOP ? AC_STOP : \
(key == KC_WWW_REFRESH ? AC_REFRESH : \ (key == KC_WWW_REFRESH ? AC_REFRESH : \
(key == KC_WWW_FAVORITES ? AC_BOOKMARKS : 0)))))))))))))))))) (key == KC_WWW_FAVORITES ? AC_BOOKMARKS : 0)))))))))))))))))))
#ifdef __cplusplus #ifdef __cplusplus
} }