Page 1 of 1

Can't get controllers vibrating (X360 pads, Win 8.1)

Posted: Mon Jun 09, 2014 3:26 am
by G-Mang
Setting up my controller logic atm. :) Everything's perfect except for vibration. Just can't get it to work in LOVE. :( Example test:

Code: Select all

function love.joystickadded( joystick )
    local canVibrate = joystick:isVibrationSupported( joystick )
    print( canVibrate )
end
false

I'm on Windows 8.1, using LOVE 0.9.1. Tried it on both my controllers (wired XBox 360 controllers), which are performing all other joystick/gamepad functions perfectly. :o: They both rumble correctly when playing my Steam games too.

Tried installing Xbox 360 Controller for Windows. Still no success with LOVE. :death:

Any idea how to fix this?

Re: Can't get controllers vibrating (X360 pads, Win 8.1)

Posted: Mon Jun 09, 2014 4:06 am
by slime
I believe it's a bug in SDL which may be fixed for its next release: https://bitbucket.org/rude/love/issue/8 ... oesnt-work

Re: Can't get controllers vibrating (X360 pads, Win 8.1)

Posted: Mon Jun 09, 2014 4:11 am
by Suppercut
For now, try throwing joystick:setVibration( left, right ) at it anyways. It doesn't error out, and it still returns false, but it does actually work. Had the same problem with my normal DirectInput joystick (a PS2 controller via USB adaptor, best shit m8). It had vibration, and passing joystick:setVibration worked perfectly, but the code always told me otherwise.

Re: Can't get controllers vibrating (X360 pads, Win 8.1)

Posted: Mon Jun 09, 2014 4:23 am
by G-Mang
slime wrote:I believe it's a bug in SDL which may be fixed for its next release: https://bitbucket.org/rude/love/issue/8 ... oesnt-work
Ahhh I didn't even check the issue tracker. Thanks. Hopefully that gets patched soon? :o:
Suppercut wrote:For now, try throwing joystick:setVibration( left, right ) at it anyways. It doesn't error out, and it still returns false, but it does actually work. Had the same problem with my normal DirectInput joystick (a PS2 controller via USB adaptor, best shit m8). It had vibration, and passing joystick:setVibration worked perfectly, but the code always told me otherwise.
I've got setVibration in the code already. :? No dice.