diff options
| author | Denis Pobedrya <[email protected]> | 2022-09-18 20:58:52 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-18 19:58:52 +0200 |
| commit | 8f597b3cc379258215cb6cbdedada7e8389ad1df (patch) | |
| tree | dd263e015911c48b7d075645ddf0d1132ed08a68 /parser | |
| parent | ff25402f689113da07f0077354f32073fc070c2e (diff) | |
| download | raylib-8f597b3cc379258215cb6cbdedada7e8389ad1df.tar.gz raylib-8f597b3cc379258215cb6cbdedada7e8389ad1df.zip | |
Basic gamepad support for Android (#2709)
Currently assumes a single gamepad, has no code specific to gamepad
detection (gamepad is "detected" when an event related to gamepad
arrives). Also assumes that all gamepads look roughly like an xbox/ps
controller. Both assumptions are not strictly true, but an
implementation like that probably covers 85% of usecases.
Also it doesn't update previousButtonState so functions
IsGamepadButtonPressed() and IsGamepadButtonReleased() don't work, but
they didn't work previously on Android anyway, and they are flaky on
desktop as they are now, so the mechanism for these two functions
probably should be reworked anyway.
It's certainly an improvement compared to the previous android gamepad
handling code, which put gamepad events into touch related structs.
Diffstat (limited to 'parser')
0 files changed, 0 insertions, 0 deletions
