libretro / dolphin

Dolphin is a GameCube / Wii emulator, allowing you to play games for these two platforms on PC with improvements.
https://dolphin-emu.org/
GNU General Public License v2.0
86 stars 68 forks source link

Re-introduce "Wiimote IR" core options #229

Closed bslenul closed 3 years ago

bslenul commented 3 years ago

These core options let you move the Wiimote pointer with the right analog, they disappeared with the rebase almost a year ago, this has been requested A LOT since then.

I mostly re-used the old code from 2dd20d2 but adjusted a few things so it works with current version. I also changed the name of the options "id" (the names that appear in the .opt file, idk how you call that) so older values don't mess with the new ones.

I've limited "Vertical Offset" to -50 to 50 (vs. -100 to 100 in standalone) and "Total Yaw/Pitch" to 0 to 100 (vs. 0 to 360 in standalone), it seems to be more than enough in the few games I've tested. It makes ~100 entries per core option, is that OK?

I made a lot of testing with a lot of different combinations, AFAICT it works fine, but I wouldn't mind some reviews/feedbacks/tests :)

Pre-built cores for Windows (compatible with Xbox Series I believe?) and Linux for the curious: https://github.com/bslenul/dolphin/releases/tag/wiimote-ir