Skip to content

Commit

Permalink
testing: add remote codes
Browse files Browse the repository at this point in the history
Use remote keycodes as well as local ones
  • Loading branch information
headblockhead committed Dec 29, 2024
1 parent d7754d7 commit cca77a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/squirrel_split.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
void get_packet(uint8_t (*packet)[9]) {
memset(*packet, 0, 9);
uint8_t local_keycodes[6] = {0};
keyboard_get_local_keycodes(&local_keycodes);
memcpy(*packet, local_keycodes, 6); // 0th to 5th byte
(*packet)[6] = keyboard_get_local_modifiers(); // 6th byte
uint16_t consumer = consumer_get_local_consumer_code();
keyboard_get_keycodes(&local_keycodes);
memcpy(*packet, local_keycodes, 6); // 0th to 5th byte
(*packet)[6] = keyboard_get_modifiers(); // 6th byte
uint16_t consumer = consumer_get_consumer_code();
(*packet)[7] = consumer & 0xFF; // 7th byte
(*packet)[8] = consumer >> 8; // 8th byte
}
Expand Down

0 comments on commit cca77a9

Please sign in to comment.