Love Not Recognizing Gamepad

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
emanevitaerc
Prole
Posts: 17
Joined: Sun Mar 13, 2016 7:21 am

Love Not Recognizing Gamepad

Post by emanevitaerc » Thu Apr 16, 2020 5:39 pm

Hey everyone. I just got a Logitech F130 gamepad (compatible with Xbox controller drivers), but running the following in Love:

Code: Select all

local joysticks = love.joystick.getJoysticks()
print(joysticks[1])
returns nil.

I'm running Love 11.1 on Linux Mint. The gamepad works fine with other games, Love programs just won't recognize it. Any ideas for how to troubleshoot this? Thanks.

Edit: Ahh crap I meant to put this in Support and Development, sorry!

Edit 2: After uploading to Love 11.3 this problem has been solved :)

User avatar
D0NM
Party member
Posts: 233
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: Love Not Recognizing Gamepad

Post by D0NM » Sat May 23, 2020 5:58 pm

hi! To have more supported gamepads you might like to use this DB.
# Game Controller DB for SDL in 2.0.10 format
# Source: https://github.com/gabomdq/SDL_GameControllerDB

To load the DB use this function:

Code: Select all

love.joystick.loadGamepadMappings( "somePAth/gamecontrollerdb.txt" )
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:

pauljessup
Party member
Posts: 152
Joined: Wed Jul 03, 2013 4:06 am

Re: Love Not Recognizing Gamepad

Post by pauljessup » Thu May 28, 2020 2:41 am

oh must be a linux issue, my f310 works fine for Love2d 11.0 on both Windows and OSX

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests