Tscope5
|
Go to the source code of this file.
Functions | |
Mouse GUI functions | |
void | ts5_show_mouse () |
void | ts5_hide_mouse () |
void | ts5_set_mouse_position (double x, double y) |
void | ts5_get_mouse_position (double *x, double *y) |
double | ts5_get_mouse_x () |
double | ts5_get_mouse_y () |
void | ts5_draw_mouse_button (double x, double y) |
Response registration | |
The mouse can also be used as a response device. See timer.c for more information about response registration. | |
int | ts5_define_mouse_key (int key) |
Definition in file mouse.c.
void ts5_show_mouse | ( | ) |
void ts5_hide_mouse | ( | ) |
void ts5_set_mouse_position | ( | double | x, |
double | y | ||
) |
void ts5_get_mouse_position | ( | double * | x, |
double * | y | ||
) |
double ts5_get_mouse_x | ( | ) |
double ts5_get_mouse_y | ( | ) |
void ts5_draw_mouse_button | ( | double | x, |
double | y | ||
) |
Draw a mouse button and wait for a click.
x | Horizontal position of the button on the active display. |
y | Vertical position of the button on the active display. |
The button has an ugly green color. This color can not be changed. This is not a bug. It is a Deliberately Annoying Feature (DAF).
int ts5_define_mouse_key | ( | int | key | ) |
Define a mouse key as a response key.
key | Number of the key (keys are counted from 1). |
Give a positive number if you want to monitor key press events, a negative number if you want to monitor key release events.