Implemented native Gamecube controller support and corresponding emulator hint in ROM header (#408)

* Implemented native Gamecube controller support and corresponding emulator hint in ROM header

* Added X and Y buttons to VALID_BUTTONS in sm64.h

* Added workaround in controller type detection for mupen bug

* read GC controllers from port 2

* L to Z logic for GC controller uses a threshold

* Changed threshold for L trig to around 33%

Changed threshold based on feedback

* Added gGamecubeControllerPort

* fixed wrong check

Co-authored-by: Reonu <danileon95@gmail.com>
This commit is contained in:
Mr-WiseguyandReonu authored and GitHub committed 2022-09-21 21:30:36 -05:00
1 parent 6dbe379990
commit 4dfb8d9a64
15 files changed
+633 -25

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ struct Controller {
/*0x12*/ u16 buttonPressed;
/*0x14*/ u16 buttonReleased;
/*0x18*/ OSContStatus *statusData;
/*0x1C*/ OSContPad *controllerData;
/*0x1C*/ OSContPadEx *controllerData;
#if ENABLE_RUMBLE
/*0x20*/ s32 port;
#endif