View Single Post
  #5   Spotlight this post!  
Unread 11-02-2008, 16:44
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Joysticks question???

Code:
if (p1_sw_trig)
{
  // do something when the trigger switch on the joystick
  // connected to port 1 of the OI is pressed
}
The OI Reference Guide explains all the available joystick button names for use with the IFI default code. easyC uses a different naming convention, which is explained in the help for the functions that read OI switches.
Reply With Quote