Go to Post When you build a practice robot, you're literally buying time. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Spotlight this post!  
Unread 23-03-2010, 10:16
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Using x-box 360 controller

just for reference for everyone else, here is a button/axis mapping for most of the xbox 360 controller, its missing the D-Pad. Please note that this is only what we came up for one so someone else confirming it would be nice.

button numbers
ButtonA = 1;
ButtonB = 2;
ButtonX = 3;
ButtonY = 4;
LeftBumper = 5;
RightBumper = 6;
Select = 7;
Start = 8;
LeftClick = 9;
RightClick = 10;

joystick axises
LeftXAxis = 1;
LeftYAxis = 2;
TriggerAxis = 3;
/* Both triggers are in this.
* Right Trigger is [-1,0]
* Left Trigger is [0,1]
* Return value = Right Trigger + Left Trigger */
RightXAxis = 4;
RightYAxis = 5;

please excuse the semicolons
as for the trigger mapping, it might be inversed of that, not sure been a while since we made this

Last edited by Zme : 23-03-2010 at 10:20. Reason: revised wording
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xbox 360 controller viper110110 Programming 7 18-02-2010 19:58
Xbox 360 Controller Rumble bubushkinator C/C++ 5 09-02-2010 15:05
Xbox 360 controller LabView CJBrick General Forum 12 17-12-2008 13:58
xbox 360 controller installation kuelin Technical Discussion 17 07-01-2008 19:43
if we are using an xbox 360 controller, how much can we...... waialua359 Control System 1 24-02-2007 02:43


All times are GMT -5. The time now is 19:48.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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