View Single Post
  #1   Spotlight this post!  
Unread 27-01-2007, 18:04
billdar billdar is offline
Registered User
FRC #2085
 
Join Date: Jan 2007
Location: california
Posts: 3
billdar is an unknown quantity at this point
Direct Joystick Access

I'm familiar with the OIToRelay, OIToPWM, and the OIToDOutput functions,
but is there a way to read the state of the joystick pushbuttons directly?
(ie, something like GetTriggerButton())

Basically I'm trying to do some additional logic between when a button
is pressed and when a control action is performed.

Also, a side note. I had to move a couple function prototypes and defines
(but not everything) from API.h into the file I'm calling them from in MPLAB.
I saw an earlier post on this concerning EasyC, but the solution didn't seem
to exactly apply.

Thanks in advance.

-Bill
Team 2085