Tscope5
joystick.c File Reference

Go to the source code of this file.

Functions

Response registration

Joysticks can only be used as response devices.

See timer.c for more information about response registration.

int ts5_define_joystick_key (int device, int key)

Detailed Description

Definition in file joystick.c.


Function Documentation

int ts5_define_joystick_key ( int  device,
int  key 
)

Define a joystick key as a response key.

Parameters:
deviceNumber of the joystick (devices are numbered from 1).
keyNumber of the key (keys are counted from 1).
Returns:
The reponse number associated with the key.

Give a positive number if you want to monitor key press events, a negative number if you want to monitor key release events.

Definition at line 32 of file joystick.c.