Xinput for Love (Real Xbox controller support) BETA

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.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Xinput for Love (Real Xbox controller support) BETA

Post by Nixola »

I've got a 32bit system, so I don't think I have the 64 one... Anyway, I've got Xinput9_1_0 in system32
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Charles Randall
Prole
Posts: 34
Joined: Wed May 09, 2012 2:52 pm

Re: Xinput for Love (Real Xbox controller support) BETA

Post by Charles Randall »

Okay, I know you said you have direct x installed, but could you install this one?

http://www.microsoft.com/en-us/download ... px?id=8109

The installers that come with games don't necessarily have all the files; this package does have xinput1_3.dll, I verified. If you run that and install it, you *should* have the dll. The one you have is default with Vista/Windows 7, which means you've never had the direct x version installed.

So run that installer, and if the game still complains about it missing, I'll move on to next steps.
Noktai
Prole
Posts: 7
Joined: Tue Sep 11, 2012 2:25 am

Re: Xinput for Love (Real Xbox controller support) BETA

Post by Noktai »

I've tried the updated love.exe, but that throws an error:
The application was unable to start correctly (0xc00007b)
trying to include the .dll throws the following error:
error loading module XInputLua.dll from file '.\XinputLua.dll' %1 is not a valid win32 application
I'm using windows 7 64bit
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Xinput for Love (Real Xbox controller support) BETA

Post by Lafolie »

Just a heads up, the latest tattie-bogle driver for OS X maps both the triggers correctly, and can handle both vibration motors. There's no SDL bindings for the vibration though.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
Charles Randall
Prole
Posts: 34
Joined: Wed May 09, 2012 2:52 pm

Re: Xinput for Love (Real Xbox controller support) BETA

Post by Charles Randall »

Noktai wrote:I've tried the updated love.exe, but that throws an error:
The application was unable to start correctly (0xc00007b)
trying to include the .dll throws the following error:
error loading module XInputLua.dll from file '.\XinputLua.dll' %1 is not a valid win32 application
I'm using windows 7 64bit
You shouldn't need an updated love.exe anymore, I've switched things over to existing purely in the package/dll so it works with basic love2d.

Lafolie wrote:Just a heads up, the latest tattie-bogle driver for OS X maps both the triggers correctly, and can handle both vibration motors. There's no SDL bindings for the vibration though.
Yeah I played with it a bit, the triggers work great. Problem is his driver doesn't identify the controller properly to SDL so I can't know that it's a 360 controller. I emailed him to see if he'd be willing to change that but I never did hear back.
User avatar
mangadrive
Prole
Posts: 32
Joined: Sat Nov 17, 2012 10:26 pm

Re: Xinput for Love (Real Xbox controller support) BETA

Post by mangadrive »

I'm probably doing something terribly wrong, but the test app cannot find "Xpad" I see it requires it, but there's no Xpad in your library (unless I don't understand what to use)
User avatar
Charles Randall
Prole
Posts: 34
Joined: Wed May 09, 2012 2:52 pm

Re: Xinput for Love (Real Xbox controller support) BETA

Post by Charles Randall »

mangadrive wrote:I'm probably doing something terribly wrong, but the test app cannot find "Xpad" I see it requires it, but there's no Xpad in your library (unless I don't understand what to use)
You have to pull the XPad library from github and locate it in the test app folder. See the instructions on the test app at this page:
https://github.com/mrcharles/love2d-x360-test
User avatar
mangadrive
Prole
Posts: 32
Joined: Sat Nov 17, 2012 10:26 pm

Re: Xinput for Love (Real Xbox controller support) BETA

Post by mangadrive »

I copied the .dll to Love directory.

I got Xpad-Master library and added the contents to the test app folder

Error: Main.LUA:2.Xpad module not found:

No Xpad.lua in Love game directories.

There's no Xpad.Lua in your github.
User avatar
Charles Randall
Prole
Posts: 34
Joined: Wed May 09, 2012 2:52 pm

Re: Xinput for Love (Real Xbox controller support) BETA

Post by Charles Randall »

This is the Xpad library:

https://github.com/mrcharles/XPad

That repo goes in a /XPad/ folder in your test app's directory.
User avatar
mangadrive
Prole
Posts: 32
Joined: Sat Nov 17, 2012 10:26 pm

Re: Xinput for Love (Real Xbox controller support) BETA

Post by mangadrive »

There we go :) Thank you so much.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests