|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
||||
|
||||
|
Re: XBox controller
Does anyone happen to know the button mapping for the Logitech Gamepad F310 and/or Logitech Attack3 joystick? Is the gamepad mapping the same as the xBox controller? We'll be using the Attack3 joysticks until we order some sort of gamepad, probably the Logitech F310 gamepad, based on F22Rapture's testimony. Thanks!
|
|
#17
|
||||
|
||||
|
Re: XBox controller
Windows has a tool that shows you the state of any joystick you have plugged in (ie, what axis are where, what buttons are pressed). You can find it under control panel > Devices. Look for "Set up Game controllers", then press advanced on whichever connected game controller you want to inspect.
|
|
#18
|
||||
|
||||
|
Re: XBox controller
Quote:
Code:
//Axis Indexes
public static final int
X_AXIS = 1,
Y_AXIS = 2,
THROTTLE = 3;
//Buttons
public static final int
//Buttons on joystick
TRIGGER = 1,
//POV buttons on head of stick
BUTTON_SOUTH = 2,
BUTTON_NORTH = 3,
BUTTON_WEST = 4,
BUTTON_EAST = 5,
//Pair of buttons left of stick
BUTTON_BASE_WNW = 6,
BUTTON_BASE_WSW = 7,
//Pair of buttons below stick
BUTTON_BASE_SSW = 8,
BUTTON_BASE_SSE = 9,
//Pair of buttons right of stick
BUTTON_BASE_ESE = 10,
BUTTON_BASE_ENE = 11;
|
|
#19
|
||||
|
||||
|
Re: XBox controller
The Attack3's buttons are numbered on the controller and they do correspond correctly in software.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|