love.gamepadpressed vs love.joystickpressed

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
vincentg
Prole
Posts: 15
Joined: Wed Apr 18, 2018 3:26 pm

love.gamepadpressed vs love.joystickpressed

Post 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?
User avatar
zorg
Party member
Posts: 3441
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: love.gamepadpressed vs love.joystickpressed

Post 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
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
vincentg
Prole
Posts: 15
Joined: Wed Apr 18, 2018 3:26 pm

Re: love.gamepadpressed vs love.joystickpressed

Post by vincentg »

Thanks. So to make something more compatible, Joystick is the way to go I suppose.
Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests