More than 4 Gamepads

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.
pericles
Prole
Posts: 7
Joined: Tue Dec 25, 2018 6:31 pm

More than 4 Gamepads

Post by pericles »

Hello! :3
Is there a way to allow the game to recognize more than 4 Gamepad?

Example: When I connect 5 or 6 gamepads only 4 are recognize :(

Code: Select all

function love.joystickadded( joystick )
     print(joystick:getName().." Connected",joystick:getID())
end
Image

I think its related to Xinput thing that not allow more that 4 gamepad
but is there a way to change it to DirectInput for example?
Last edited by pericles on Wed Apr 21, 2021 3:03 pm, edited 2 times in total.
User avatar
GVovkiv
Prole
Posts: 42
Joined: Fri Jan 15, 2021 7:29 am

Re: More than 4 Gamepads

Post by GVovkiv »

Just curious
Why do you even need more than 1 or 2 gamepads connected?
pericles
Prole
Posts: 7
Joined: Tue Dec 25, 2018 6:31 pm

Re: More than 4 Gamepads

Post by pericles »

To play more than 4 players, each one with theirs own gamepad >.<

Like Shipped, a game that can be played by 8 players local
User avatar
GVovkiv
Prole
Posts: 42
Joined: Fri Jan 15, 2021 7:29 am

Re: More than 4 Gamepads

Post by GVovkiv »

pericles wrote: Sun Apr 18, 2021 5:47 pm To play more than 4 players, each one with theirs own gamepad >.<

Like Shipped, a game that can be played by 8 players local
Yeah, but how much people actually nowdays plays in games with local multiplayer with more then 2 players?
in our 2k21 future everyone play in multyplayer games via internet or in very rare cases via lan
so i guess 4 gamepads limit shouldn't be a problem
togFox
Party member
Posts: 148
Joined: Sat Jan 30, 2021 9:46 am

Re: More than 4 Gamepads

Post by togFox »

Maybe he/she has lots of siblings. :)
User avatar
D0NM
Party member
Posts: 247
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: More than 4 Gamepads

Post by D0NM »

pericles wrote: Sat Apr 17, 2021 7:28 pm Hello! :3
Is there a way to allow the game to recognize more than 4 Gamepad?
Wow!!! Nice find! I've connected only 4 gamepads at the same time.
I had an idea there is a limit on the number of the connected joysticks.
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
pericles
Prole
Posts: 7
Joined: Tue Dec 25, 2018 6:31 pm

Re: More than 4 Gamepads

Post by pericles »

GVovkiv wrote: Sun Apr 18, 2021 6:23 pm Yeah, but how much people actually nowdays plays in games with local multiplayer with more then 2 players?
in our 2k21 future everyone play in multyplayer games via internet or in very rare cases via lan
so i guess 4 gamepads limit shouldn't be a problem
Well, it's a problem for me otherwise wouldn't have posted

Groups of more than 4 friends aren't that weird, plus siblings as togFox said :rofl:

That kind of answer is not helpful at all.
Its like if someone ask:
- "How to use conf.lua or --console on Ubuntu?"
And people answer it with:
- "Most people use Windows nowadays, just use Windows and it shouldn't be a problem"

But thanks, I guess ^^
User avatar
GVovkiv
Prole
Posts: 42
Joined: Fri Jan 15, 2021 7:29 am

Re: More than 4 Gamepads

Post by GVovkiv »

pericles wrote: Wed Apr 21, 2021 3:01 pm
GVovkiv wrote: Sun Apr 18, 2021 6:23 pm Yeah, but how much people actually nowdays plays in games with local multiplayer with more then 2 players?
in our 2k21 future everyone play in multyplayer games via internet or in very rare cases via lan
so i guess 4 gamepads limit shouldn't be a problem
Well, it's a problem for me otherwise wouldn't have posted

Groups of more than 4 friends aren't that weird, plus siblings as togFox said :rofl:

That kind of answer is not helpful at all.
Its like if someone ask:
- "How to use conf.lua or --console on Ubuntu?"
And people answer it with:
- "Most people use Windows nowadays, just use Windows and it shouldn't be a problem"

But thanks, I guess ^^
ok
Ross
Prole
Posts: 28
Joined: Tue Mar 13, 2018 12:12 pm
Contact:

Re: More than 4 Gamepads

Post by Ross »

Sounds like a bug to me, though it could potentially be with your system/drivers/etc. Have you tried some of the other checks, like love.joystick.getJoystickCount, or love.joystick.getJoysticks? Have you tried different types of controllers?

You could also try reporting it on the Love2D github issues page: https://github.com/love2d/love/issues
User avatar
pgimeno
Party member
Posts: 2596
Joined: Sun Oct 18, 2015 2:58 pm

Re: More than 4 Gamepads

Post by pgimeno »

I'd bet that this is not a Löve issue, but an upstream issue, either SDL or the OS.
Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests