mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00

Add support for Extended Gamepad controllers. What defines extended gamepad controllers can be found here: https://developer.apple.com/documentation/gamecontroller/gcextendedgamepad Support has been added for controlling the pointer position using the left thumbstick, left clicks using the A-button and right clicks using the B-button. Also the Main menu can be accessed using the Home/Menu button. The thumbstick values are received when changed, however if holding the thumbstick in the same position the valueChangedHandler will not be called. Therefore store the X- and Y-axis values and begin to poll readings of the stored values for as long as the thumbstick is out of the center position.