pedro2555 Posted February 24, 2013 Share Posted February 24, 2013 (edited) As of now, I am not able to test this out using neither the xBox 360 controller or GTA IV. And, thus, this stands for beta state for now. (Next week, I will have time for that. Hope you guys can help me finish this) But I do think it is working out of the box. This is for script developers only. This library enables access to multiple xBox 360 controller information, using .NET events. It takes care of all polling for you. For example, the button A press can very easily be subscribed like any other .NET event using XInputDotNet;...XboxController.OnAButtonUp += XboxController_OnAButtonUp;...static void XboxController_OnAButtonUp(object sender, EventArgs e){} You can subscribe to any controller change (apart from battery level changes, as of now), also you can access button states directly trough boolean variables, trigger axis values can be accessed via properties. All other changes require event subscription. It is also possible to send a specific motor vibration to the controller. All members are static, but you must call (and preferably check if it returns true) the LoadController method when your script loads. You can download the required files from here The zip package includes SlimDx.dll and XInputDotNet.dll, in theory you SHOULD only add as a reference to your project XInputDotNet.dll. For running with GTA IV, both SlimDx.dll and XInputDotNet.dll should be placed in GTA root folder, because they are loaded by scripthook. Hopefully this does not require the installation of SlimDx SDK for development. Not sure about 64bit OS, since I am working on 32bit (weird, isn't it?). and SlimDx does make a difference, XInput doesn't, but who knows. No bug report system, but since this is for developers, I think this thread does the job. Hope I can play some more GTA mods with no keyboard at all. When finished, source code will be available. Doing this with 26 hours awake, as of now. Edited February 24, 2013 by pedro2555 Link to comment Share on other sites More sharing options...
YossiBz Posted February 24, 2013 Share Posted February 24, 2013 Thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now