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.