Page 1 of 1

love.gamepadpressed vs love.joystickpressed

Posted: Mon Dec 17, 2018 5:08 pm
by vincentg
What is the difference between love.gamepadxxx and love.joystickxxx functions?
One of my controller that has a switch x-input and direct input was recognised in both mode only in one of them (love.gamepad if I remember well). So is there a reason to have those two options?

Re: love.gamepadpressed vs love.joystickpressed

Posted: Mon Dec 17, 2018 5:51 pm
by zorg
gamepad stuff is for those that have mappings in sdl, joystick stuff is for those that don't have such mappings.
https://discourse.libsdl.org/t/differen ... rs/24028/2

Re: love.gamepadpressed vs love.joystickpressed

Posted: Mon Dec 17, 2018 10:40 pm
by vincentg
Thanks. So to make something more compatible, Joystick is the way to go I suppose.