Controller not recognized as gamepad

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Pardaleco
Prole
Posts: 10
Joined: Mon Dec 31, 2018 7:12 pm

Controller not recognized as gamepad

Post 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!
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Controller not recognized as gamepad

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot], xxl and 77 guests