Sign in to follow this  
Followers 0
Oxin8

_XInput UDF

10 posts in this topic

I bought an Xbox 360 controller for the sheer purpose of programming for it the other day and I finally got the UDF done (for now). This is my first UDF and I hope you all like it although I'm sure not many people have their Xbox 360 controllers hooked up to their comps... Anyhow you need beta and my custom api wrapper for the XInput api calls because I couldn't get the sub structs to work in autoit. So, register the xwrap.dll from the xwrap.zip (with included source), download the _XInput.au3, and download and run the _XInputExample.au3. All comments and suggestions are very welcome.

xwrap.zip

_XInput.au3

_XInputExample.au3

Share this post


Link to post
Share on other sites



I didn't know you could program for the controller. I have been waiting for the scene to hack the 360 so it is mod ready...

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

nice work man!!! and sorry to bring an old topic back up but this was exactly what i was looking for!! and do you think it would be possible to do something like this with a normal xbox controller?

Edit: also how do i register a dll ? sorry for the noob question

Edit2: never mind i figured it out but good work

Edited by PezoFaSho

50% of the time, it works all the time

Share this post


Link to post
Share on other sites

Hi!

You've made a wonderful script, i've searched for such a script for weeks. But i doesn't work for me. I've installed the v3.1.1.105 (beta) Version of AutoIt and the SciTe Compiler brings me the following error:

"C:\XBox 360 Controller Script\_XInput.au3 (22) : ==> The requested action with this object has failed.:

$xob.xVibrate(0,0,0)

$xob.xVibrate(0,0,0)^ ERROR"

Greetz DM2005

Share this post


Link to post
Share on other sites

Yes, i have.

Share this post


Link to post
Share on other sites

In which Folder must the dll file stored? I have it exctracted in the system32 Folder of Windows and registered it with "regsvr32 xwrap.dll" via the Run-Dialog.

Share this post


Link to post
Share on other sites

I tested it on my notebook and on my desktop pc.

On my notebook is WinXP Home Edition SP2 and on my desktop pc is WinXP Professional SP2.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0