Skip to content

Commit

Permalink
feature(gamecube): adds melee light shield key to keyboard->controlle…
Browse files Browse the repository at this point in the history
…r mapping
  • Loading branch information
RobertDaleSmith committed Jan 26, 2024
1 parent ed39729 commit dac15ea
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 dac15ea

Please sign in to comment.