Thread: XBox controller
View Single Post
  #11   Spotlight this post!  
Unread 13-01-2013, 21:17
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: XBox controller

Quote:
Originally Posted by ekapalka View Post
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!
Not sure on the F310 (see nightpool's post), but the Attack3 is something like this:


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;
I don't have one on me, so I'd appreciate it if someone could confirm.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote