Go to Post I wonder if the FIRST Place Holiday Party partly consists of watching the site activity.... - Jessica Boucher [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #1   Spotlight this post!  
Unread 06-03-2014, 01:55
JagCode's Avatar
JagCode JagCode is offline
Bring Your "B" Game
AKA: Noah
FRC #2929 (JagBots)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Puyallup, WA
Posts: 19
JagCode will become famous soon enough
Is It Possible to Code for 2 Joysticks and a Gamepad?

We've been a 1-driver team for a while now, with the operator being a backup driver, more or less. After our first district event, our driver has had trouble multi-tasking (priming our launcher and driving at the same time) and so I need to incorporate a Gamepad (360) so I can manage our shooting mechanism while he drives.

Problem is, we use Tank Drive. IE, we've defined Left and Right Joysticks, and because we've defined both sticks already, I don't know if we can define our gamepad's sticks. I'm wondering if there is an alternate way to incorporate the gamepad as a controller into the code, without overwriting the two Joysticks.

Would calling the gamepad's 'Joysticks' "LeftJoystick(3) and RightJoystick(4)" work? I haven't looked at our code in a while, but I think we defined our original Joysticks as (1) and (2) in ordnance with the DS.
Reply With Quote
 


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


All times are GMT -5. The time now is 12:11.

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