Functions | |
unsigned int | caca_get_event (unsigned int) |
Get the next mouse or keyboard input event. | |
unsigned int | caca_wait_event (unsigned int) |
Wait for the next mouse or keyboard input event. | |
unsigned int | caca_get_mouse_x (void) |
Return the X mouse coordinate. | |
unsigned int | caca_get_mouse_y (void) |
Return the Y mouse coordinate. |
|
This function polls the event queue for mouse or keyboard events matching the event mask and returns the first matching event. Non-matching events are discarded.
|
|
This function returns the X coordinate of the mouse position last time it was detected. This function is not reliable if the ncurses or S-Lang drivers are being used, because mouse position is only detected when the mouse is clicked. Other drivers such as X11 work well.
|
|
This function returns the Y coordinate of the mouse position last time it was detected. This function is not reliable if the ncurses or S-Lang drivers are being used, because mouse position is only detected when the mouse is clicked. Other drivers such as X11 work well.
|
|
This function returns the first mouse or keyboard event in the queue that matches the event mask. If no event is pending, it blocks until a matching event is received.
|