Gamepad rumble not working
Posted: Wed May 14, 2014 9:50 am
So I recently got a gamepad, so of course I tried it out with the love.joystick library. Everything is working fine, except I can't get my gamepad to rumble
I know that my gamepad supports rumble, because when I'm playing DiRT, GRID and moar games, it almost rumbles out of my hand (cough cough exaggeration cough). Also I have a transparent one (THIS one, if you're interested) so I can see the vibration motors sit right there.
The code I use is as follows:
I found out that putting setVibration() in a loop causes a lot of lag, so at least something is happening.
I'll try running with a shell open to see the feedback.
TIA and greetings
I know that my gamepad supports rumble, because when I'm playing DiRT, GRID and moar games, it almost rumbles out of my hand (cough cough exaggeration cough). Also I have a transparent one (THIS one, if you're interested) so I can see the vibration motors sit right there.
The code I use is as follows:
Code: Select all
function love.load()
local joysticks = love.joystick.getJoysticks()
a = joysticks[1]
a:isVibrationSupported()
a:setVibration(1,1)
end
I'll try running with a shell open to see the feedback.
TIA and greetings