1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-12-21 23:08:53 -05:00

Fix wavebird detection

This commit is contained in:
Raphael Assenat 2015-12-04 23:06:18 -05:00
parent 94d61e80aa
commit fd3e770fdf

View File

@ -164,19 +164,17 @@ int gcn64_detectController(void)
* 0xa800 Wavebird * 0xa800 Wavebird
* 0xebb0 Wavebird * 0xebb0 Wavebird
* *
* This last entry worries me. I never observed it, but who knows
* what the user will connect? Better be safe and consider 0xb as
* a gamecube controller too.
*
**/ **/
id = (data[0]<<8) | data[1]; id = (data[0]<<8) | data[1];
printf("Id: %04x (%d: %02x %02x %02x)\r\n", id, count, data[0], data[1], data[2]);
#ifdef FORCE_KEYBOARD #ifdef FORCE_KEYBOARD
return CONTROLLER_IS_GC_KEYBOARD; return CONTROLLER_IS_GC_KEYBOARD;
#endif #endif
switch (id >> 8) { switch ((id >> 8) & 0x0F) {
case 0x05: case 0x05:
return CONTROLLER_IS_N64; return CONTROLLER_IS_N64;