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 const *) |
Return the X mouse coordinate. | |
unsigned int | caca_get_mouse_y (caca_display_t const *) |
Return the Y mouse coordinate. | |
enum caca_event_type | caca_get_event_type (caca_event_t const *) |
Return an event's type. | |
unsigned int | caca_get_event_key_ch (caca_event_t const *) |
Return a key press or key release event's value. | |
unsigned long int | caca_get_event_key_utf32 (caca_event_t const *) |
Return a key press or key release event's Unicode value. | |
int | caca_get_event_key_utf8 (caca_event_t const *, char *) |
Return a key press or key release event's UTF-8 value. | |
unsigned int | caca_get_event_mouse_button (caca_event_t const *) |
Return a mouse press or mouse release event's button. | |
unsigned int | caca_get_event_mouse_x (caca_event_t const *) |
Return a mouse motion event's X coordinate. | |
unsigned int | caca_get_event_mouse_y (caca_event_t const *) |
Return a mouse motion event's Y coordinate. | |
unsigned int | caca_get_event_resize_width (caca_event_t const *) |
Return a resize event's display width value. | |
unsigned int | caca_get_event_resize_height (caca_event_t const *) |
Return a resize event's display height value. |
|
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.
|
|
Return the type of an event. This function may always be called on an event after caca_get_event() was called, and its return value indicates which other functions may be called:
This function never fails.
|
|
Return either the ASCII value for an event's key, or if the key is not an ASCII character, an appropriate enum caca_key value.
This function never fails, but must only be called with a valid event of type
|
|
Return the UTF-32/UCS-4 value for an event's key if it resolves to a printable character.
This function never fails, but must only be called with a valid event of type
|
|
Write the UTF-8 value for an event's key if it resolves to a printable character. Up to 6 UTF-8 bytes and a null termination are written.
This function never fails, but must only be called with a valid event of type
|
|
Return the mouse button index for an event.
This function never fails, but must only be called with a valid event of type
|
|
Return the X coordinate for a mouse motion event.
This function never fails, but must only be called with a valid event of type
|
|
Return the Y coordinate for a mouse motion event.
This function never fails, but must only be called with a valid event of type
|
|
Return the width value for a display resize event.
This function never fails, but must only be called with a valid event of type
|
|
Return the height value for a display resize event.
This function never fails, but must only be called with a valid event of type
|