Functions | |
int | caca_get_event (caca_display_t *, unsigned int, caca_event_t *, int) |
Get the next mouse or keyboard input event. | |
unsigned int | caca_get_mouse_x (caca_display_t *) |
Return the X mouse coordinate. | |
unsigned int | caca_get_mouse_y (caca_display_t *) |
Return the Y mouse coordinate. | |
int | caca_set_mouse (caca_display_t *, int) |
Show or hide the mouse pointer. |
|
Poll the event queue for mouse or keyboard events matching the event mask and return the first matching event. Non-matching events are discarded. If The timeout value tells how long this function needs to wait for an event. A value of zero returns immediately and the function returns zero if no more events are pending in the queue. A negative value causes the function to wait indefinitely until a matching event is received.
If not null, This function never fails.
|
|
Return 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 never fails.
|
|
Return 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 never fails.
|
|
Show or hide the mouse pointer, for devices that support such a feature. If an error occurs, -1 is returned and errno is set accordingly:
|