mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-01 21:42:05 +00:00
Resolved requested changes
This commit is contained in:
parent
87008f1db3
commit
5f58faa90c
@ -20,10 +20,7 @@
|
|||||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|
||||||
enum my_keycodes {
|
enum my_keycodes {
|
||||||
KC_SIRI = QK_USER,
|
KC_SIRI = QK_USER
|
||||||
KC_DND,
|
|
||||||
KC_SPOT,
|
|
||||||
KC_EJ,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
@ -38,29 +35,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||||||
}
|
}
|
||||||
return false; /* Skip all further processing of this key */
|
return false; /* Skip all further processing of this key */
|
||||||
|
|
||||||
case KC_DND:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
host_system_send(0x9B);
|
|
||||||
} else {
|
|
||||||
host_system_send(0);
|
|
||||||
}
|
|
||||||
return false; /* Skip all further processing of this key */
|
|
||||||
|
|
||||||
case KC_SPOT:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
host_consumer_send(0x221);
|
|
||||||
} else {
|
|
||||||
host_consumer_send(0);
|
|
||||||
}
|
|
||||||
return false; /* Skip all further processing of this key */
|
|
||||||
|
|
||||||
case KC_EJ:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
host_consumer_send(0x0B8);
|
|
||||||
} else {
|
|
||||||
host_consumer_send(0);
|
|
||||||
}
|
|
||||||
return false; /* Skip all further processing of this key */
|
|
||||||
default:
|
default:
|
||||||
return true; /* Process all other keycodes normally */
|
return true; /* Process all other keycodes normally */
|
||||||
}
|
}
|
||||||
|
@ -20,10 +20,7 @@
|
|||||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
|
||||||
enum my_keycodes {
|
enum my_keycodes {
|
||||||
KC_SIRI = QK_USER,
|
KC_SIRI = QK_USER
|
||||||
KC_DND,
|
|
||||||
KC_SPOT,
|
|
||||||
KC_EJ,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
@ -38,29 +35,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||||||
}
|
}
|
||||||
return false; /* Skip all further processing of this key */
|
return false; /* Skip all further processing of this key */
|
||||||
|
|
||||||
case KC_DND:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
host_system_send(0x9B);
|
|
||||||
} else {
|
|
||||||
host_system_send(0);
|
|
||||||
}
|
|
||||||
return false; /* Skip all further processing of this key */
|
|
||||||
|
|
||||||
case KC_SPOT:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
host_consumer_send(0x221);
|
|
||||||
} else {
|
|
||||||
host_consumer_send(0);
|
|
||||||
}
|
|
||||||
return false; /* Skip all further processing of this key */
|
|
||||||
|
|
||||||
case KC_EJ:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
host_consumer_send(0x0B8);
|
|
||||||
} else {
|
|
||||||
host_consumer_send(0);
|
|
||||||
}
|
|
||||||
return false; /* Skip all further processing of this key */
|
|
||||||
default:
|
default:
|
||||||
return true; /* Process all other keycodes normally */
|
return true; /* Process all other keycodes normally */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user