3

My game uses the InputManager to iterate through all device IDs, choosing ones that have Joystick and Gamepad flags set. The problem is that some devices (the LG V35 ThinQ for example) are registering their Fingerprint Scanners as Keyboard|Joystick|Gamepad which is messing things up for my users. Is there a more fool-proof way of detecting actual Gamepad/Joystick devices or is this a bug for LG to solve?

Here's a picture of some Log output of the device that's being chosen. Log output of fingerprint scanner device

Martin Zeitler
  • 1
  • 19
  • 155
  • 216
cjserio
  • 2,857
  • 7
  • 29
  • 29

1 Answers1

0

Maybe checking the Location flag too? If location is set to "built-in" there is 99% chance that this is not the device you want to use.

lkogs
  • 53
  • 10
  • The "Location" that gets printed out is mIsExternal in the InputDevice class which has an isExternal() accessor but it's not exposed to the public. – cjserio Sep 24 '18 at 00:01