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

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.
Post Reply
G-Mang
Prole
Posts: 9
Joined: Sun Jun 01, 2014 12:21 am

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

Post 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?
User avatar
slime
Solid Snayke
Posts: 3159
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post 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
User avatar
Suppercut
Prole
Posts: 18
Joined: Sun Aug 05, 2012 4:10 pm

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

Post 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.
G-Mang
Prole
Posts: 9
Joined: Sun Jun 01, 2014 12:21 am

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests