Skip to content

Commit

Permalink
Merge pull request #27 from RobertDaleSmith/melee-light-shield-key
Browse files Browse the repository at this point in the history
feature(gamecube): adds melee light shield keyboard key
  • Loading branch information
RobertDaleSmith authored Jan 26, 2024
2 parents ed39729 + dac15ea commit 34ef8a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/devices/hid_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ void process_hid_keyboard(uint8_t dev_addr, uint8_t instance, uint8_t const* hid
if (report->keycode[i] == HID_KEY_U || report->keycode[i] == HID_KEY_PAGE_UP) btns_five = true; // L
if (report->keycode[i] == HID_KEY_I || report->keycode[i] == HID_KEY_PAGE_DOWN) btns_six = true; // R

#ifdef CONFIG_NGC
// light shield
if (report->keycode[i] == HID_KEY_O) analog_r = 127; // R at 50%
#endif
// HAT SWITCH
switch (report->keycode[i])
{
Expand Down

0 comments on commit 34ef8a8

Please sign in to comment.