Resolved requested changes

This commit is contained in:
jukaie 2023-07-25 16:25:42 +08:00 committed by GitHub
parent 87008f1db3
commit 5f58faa90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 54 deletions

View File

@ -20,10 +20,7 @@
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
enum my_keycodes {
KC_SIRI = QK_USER,
KC_DND,
KC_SPOT,
KC_EJ,
KC_SIRI = QK_USER
};
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 */
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:
return true; /* Process all other keycodes normally */
}

View File

@ -20,10 +20,7 @@
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
enum my_keycodes {
KC_SIRI = QK_USER,
KC_DND,
KC_SPOT,
KC_EJ,
KC_SIRI = QK_USER
};
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 */
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:
return true; /* Process all other keycodes normally */
}