mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-21 23:08:53 -05:00
Initialize context for hid set/get report
This commit is contained in:
parent
835a4935c5
commit
bb9e6dce17
11
main.c
11
main.c
@ -455,7 +455,18 @@ int main(void)
|
||||
intervaltimer_init();
|
||||
|
||||
for (i=0; i<num_players; i++) {
|
||||
int hid_iface_id;
|
||||
|
||||
usbpad_init(&usbpads[i]);
|
||||
|
||||
// Skip interface 1 (always used for the dataReport)
|
||||
if (i>0) {
|
||||
hid_iface_id = i + 1;
|
||||
} else {
|
||||
hid_iface_id = i;
|
||||
}
|
||||
|
||||
usb_params.hid_params[hid_iface_id].ctx = &usbpads[i];
|
||||
}
|
||||
|
||||
switch (g_eeprom_data.cfg.mode)
|
||||
|
Loading…
Reference in New Issue
Block a user