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!
Controller not recognized as gamepad
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Controller not recognized as gamepad
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.
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.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot], t3hgreen and 7 guests