Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

XInput/Xbox360 Controller Support for VB6/EO (Easy to use)


hansomme94
 Share

Recommended Posts

**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 will
constantly 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

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 = Attack
X = Run
D-Pad = Move
Left Joystick = Analog Move (Sensitive walking speed)
Rumble = Taking damage

Menu Controls:
A = Accept
B = Exit
D-Pad/Left Joystick = Navigate
Rumble = Moving through the menu
Link to comment
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
 Share

×
×
  • Create New...