Page 1 of 1

Controller not recognized as gamepad

Posted: Tue Nov 26, 2019 10:40 pm
by Pardaleco
I am trying to connect a controller for my game but apparently it is not being recognized as a gamepad.
When I print Joystick:isGamepad() it returns false.

Any clues why this happens?

I am using a gioteck ps3 controller.

Please help,
Thanks in advance!

Re: Controller not recognized as gamepad

Posted: Wed Nov 27, 2019 5:49 am
by raidho36
It's not recognized because it's not in the built-in SDL database of gamepads, on account of not being a first party controller. You can load community database of controllers for SDL, or you can simply set up the controller as a gamepad programmatically (you'd probably want to save that data too).

Alternatively (preferably) you should make an input settings screen where the user can configure input to their liking. My input library (admittedly pretty heavy) has automated facilities for that.