Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   XBox controller (http://www.chiefdelphi.com/forums/showthread.php?t=109932)

ekapalka 13-01-2013 19:31

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!

nightpool 13-01-2013 19:34

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.

F22Rapture 13-01-2013 21:17

Re: XBox controller
 
Quote:

Originally Posted by ekapalka (Post 1214545)
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.

cgmv123 14-01-2013 00:22

Re: XBox controller
 
Quote:

Originally Posted by F22Rapture (Post 1214656)
I don't have one on me, so I'd appreciate it if someone could confirm.

The Attack3's buttons are numbered on the controller and they do correspond correctly in software.


All times are GMT -5. The time now is 14:27.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi