Commit Graph

19 Commits

Author SHA1 Message Date
Michael Buckley 7c9c220931 macOS: Fix keyboard settings warning 2024-07-14 12:27:08 -07:00
Seth Cantrell fa7922da4a Apply recommended changes from review
https://github.com/snes9xgit/snes9x/pull/852#pullrequestreview-1451205573
2023-05-30 16:39:19 -04:00
Seth Cantrell 24cb5ce657 Support Nimbus+ controller in mac-joypad.mm findControls()
The findControls() routine was not finding several of the buttons on my Nimbus+
controller so that I could not configure those buttons in

    Settings > Controls > Nimbus+

A, B, X, Y, and the L and R shoulder buttons are detected by the existing code.
The D-pad and the 'start' and 'select' standins are not.

One odd thing that happened the first time I played with this change was that
after configuring the new buttons and loading up a game the buttons seemed to
be initially in a random state and so the game seemed to behave like some
random buttons were held down. After pressing and releasing all the new buttons
the game seemed to behave more normally. I'm not sure of my diagnosis because
it only happened the one time and I didn't have an opportunity to reproduce or
debug whatever happened.
2023-05-29 23:09:55 -04:00
Michael Buckley c9b0d104f8 Mac: Fix a crash when enumerating USB devices without a name. Closes #810 2023-01-17 07:55:59 -08:00
Michael Buckley f7c6625d67 Mac: Restore Mouse, SuperScope and Justifier support 2020-12-28 21:13:09 -08:00
Michael Buckley d6a0fa8ea5 Mac: Another fix to joypad hats 2020-03-01 17:19:23 -08:00
Michael Buckley 4d0b99ef12 Mac: Prevent centering analog stick from affecting hat values 2020-03-01 17:19:23 -08:00
Michael Buckley 085ae9d8b6
Merge pull request #621 from gtalusan/master
Mac: make HID hat switches work
2020-01-16 08:14:54 -08:00
Michael Buckley 3b5f04a5d1 Fix joypads for multiple players 2020-01-15 20:23:05 -08:00
George Talusan 173e882c7d Mac: make HID hat switches work 2020-01-13 00:50:48 -05:00
Michael Buckley b11657cd0f Mac: Fix HID parsing for gamepads 2020-01-12 15:47:58 -08:00
George Talusan c4baea0acd Mac: fix gamepad control on Catalina 2020-01-06 11:25:21 -05:00
Michael Buckley 402fa9aed6 Mac: Replace os_unfair_lock with pthread_mutex_t, since os_unfair_lock is crashong on at least one computer 2019-12-24 18:01:22 -08:00
Michael Buckley 6582af1094 Mac: Use stick deadzones when configuring joypads 2019-11-27 16:08:12 -08:00
Michael Buckley 8117af03b1 COnfigurable joypad controls and video options 2019-11-27 16:08:12 -08:00
Michael Buckley 5690beb260 New joypad implementation without configuration UI 2019-11-27 16:08:12 -08:00
Michael Buckley 41bf8cef73 Rewrite keyboard input handling, importing from the Carbon prefs 2019-11-27 16:08:12 -08:00
Michael Buckley 366ce0b105 Get app running that can load ROMs and be controlled with the default key bindings. No configuration is yet possible. 2019-11-27 16:08:12 -08:00
Michael Buckley 4bd6f30dc8 Add a framework target from the existing code, deleting or commenting out code that needs to be removed or updated until it compiles. Nothing works at this stage. 2019-11-27 16:08:05 -08:00