Add touchpad toggle and play/pause

This commit is contained in:
Jeremy Soller 2019-12-18 19:36:53 -07:00
parent 36854b11d0
commit 386b421914
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
4 changed files with 9 additions and 7 deletions

View File

@ -36,12 +36,14 @@ uint16_t keymap_translate(uint16_t key);
// Should send 0xE0 before scancode bytes
#define K_E0 (0x0100)
// Hotkeys
#define K_PLAY_PAUSE (K_E0 | 0x34)
#define K_MUTE (K_E0 | 0x23)
#define K_VOLUME_DOWN (K_E0 | 0x21)
#define K_VOLUME_UP (K_E0 | 0x32)
// Custom scancode
#define K_TOUCHPAD (K_E0 | 0x57)
// Function keys

View File

@ -91,7 +91,7 @@ uint16_t __code KEYMAP[KM_OUT][KM_IN][KM_LAY] = {
K(K_T), // 4
K(K_F7), // 5
K(K_8), // 6
K(K_F1), // 7
{K_F1, K_TOUCHPAD}, // 7
},
{ // 9
K(K_NUM_PERIOD), // 0
@ -169,7 +169,7 @@ uint16_t __code KEYMAP[KM_OUT][KM_IN][KM_LAY] = {
K(K_C), // 2
K(K_UP), // 3
K(K_DOWN), // 4
K(K_TICK), // 5
{K_TICK, K_PLAY_PAUSE}, // 5
{K_F11, KT_SCI | SCI_AIRPLANE_MODE}, // 6
{K_F12, KT_SCI | SCI_SUSPEND}, // 7
},

View File

@ -80,7 +80,7 @@ uint16_t __code KEYMAP[KM_OUT][KM_IN][KM_LAY] = {
K(K_Y), // 3
K(K_2), // 4
K(K_1), // 5
K(K_TICK), // 6
{K_TICK, K_PLAY_PAUSE}, // 6
K(K_ESC), // 7
},
{ // 8
@ -91,7 +91,7 @@ uint16_t __code KEYMAP[KM_OUT][KM_IN][KM_LAY] = {
K(K_4), // 4
K(K_3), // 5
K(K_F2), // 6
K(K_F1), // 7
{K_F1, K_TOUCHPAD}, // 7
},
{ // 9
K(K_W), // 0

View File

@ -80,7 +80,7 @@ uint16_t __code KEYMAP[KM_OUT][KM_IN][KM_LAY] = {
K(K_Y), // 3
K(K_2), // 4
K(K_1), // 5
K(K_TICK), // 6
{K_TICK, K_PLAY_PAUSE}, // 6
K(K_ESC), // 7
},
{ // 8
@ -91,7 +91,7 @@ uint16_t __code KEYMAP[KM_OUT][KM_IN][KM_LAY] = {
K(K_4), // 4
K(K_3), // 5
K(K_F2), // 6
K(K_F1), // 7
{K_F1, K_TOUCHPAD}, // 7
},
{ // 9
K(K_W), // 0