FormularSumo / Star-Wars-Galaxy-Collection

A remake of the discontinued Star Wars Force Collection game https://formularsumo.github.io/Star-Wars-Galaxy-Collection-Web/ https://play.google.com/store/apps/details?id=com.formularsumo.starwarsforcecollectionremake.embed
GNU Affero General Public License v3.0
6 stars 0 forks source link

Fix most controller buttons not working on android #23

Closed FormularSumo closed 3 years ago

FormularSumo commented 3 years ago

45 mostly fixes mouse not appearing

FormularSumo commented 3 years ago

All controller controls use gamepad so in theory should work. However it seems only 'a' and 'b' do.. When I can I'll try plugging in keyboard and using arrow keys/enter to navigate to make sure it's defintely a controller issue

FormularSumo commented 3 years ago

On android the accelerometer and sometimes fingerprint sensor count as joysticks. As previously only joystick[1] inputs were being read this meant controller didn't function on devices

FormularSumo commented 3 years ago

On Android 12 controllers weren't working at all because of a SDL issue which I've fixed on my end and pull requested upstream https://github.com/libsdl-org/SDL/pull/4670