hansomme94 Posted April 13, 2012 Author Share Posted April 13, 2012 **I have attached a rar file at the bottom**Notes:_** This program requires Microsoft XNA Framework 4.0 [http://www.microsoft.com/download/en/details.aspx?id=20914](http://www.microsoft.com/download/en/details.aspx?id=20914)**_ XInput.exe, and Winsock2005DLL.dll are both dependencies of this program! XInput Tester.exe is a sample to show how the template works.I had to make a vb.net based application called XInput.exe to stream the raw control data over a winsock connection. The connection requires both ports 420, and 422 to be open when this is in use.How to use: After you import all of the project files that are in the root folder, and load frmXInput, the controller's data willconstantly be dumped into the following variables.(frmXInput does not have to be visible for it to update the variables)Control Variables:```XInput_Present As Boolean XInput_Joy1_X As String XInput_Joy1_Y As String XInput_Joy2_X As String XInput_Joy2_Y As String XInput_BTN_A As Boolean XInput_BTN_B As Boolean XInput_BTN_X As Boolean XInput_BTN_Y As Boolean XInput_BTN_LS As Boolean XInput_BTN_RS As Boolean XInput_BTN_LB As Boolean XInput_BTN_RB As Boolean XInput_BTN_Start As Boolean XInput_BTN_Back As Boolean XInput_TRG_LT As Boolean XInput_TRG_RT As Boolean XInput_POV As String```How to send Force Feedback: I have created a function called Send_Rumble to handle sending force feedback, it works as follows. ```Call Send_Rumble(time As Integer)``` The time measurement is in ms. The higher the number you put for the time, the longer the controller will rumble.What I have done with it:I mapped the keys to buttons on the controller. I've gotten rumble support, & my favorite I added analog walking speed (You walk faster the farther you move the joystick)Credit:DTDMike/[email protected] Link to comment Share on other sites More sharing options...
Justn Posted April 13, 2012 Share Posted April 13, 2012 Hmm think someone else posted one of these already.. cool I guess Link to comment Share on other sites More sharing options...
hansomme94 Posted April 13, 2012 Author Share Posted April 13, 2012 Yeah, I was the one who posted it but it was a workaround using glovepie, not actual programming.I have included the alpha client for my game, so you guys can see what is possible with this.In-Game Controls:A = AttackX = RunD-Pad = MoveLeft Joystick = Analog Move (Sensitive walking speed)Rumble = Taking damageMenu Controls:A = AcceptB = ExitD-Pad/Left Joystick = NavigateRumble = Moving through the menu 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