|
pico-sdl
|
Event handling. More...
Functions | |
| void | pico_input_delay (int ms) |
| Stops the program until the given number of milliseconds have passed. | |
| void | pico_input_event (Pico_Event *evt, int type) |
| Stops the program until an event occurs. | |
| int | pico_input_event_ask (Pico_Event *evt, int type) |
| Checks if an event has occured. | |
| int | pico_input_event_timeout (Pico_Event *evt, int type, int timeout) |
| Stops the program until an event occurs or a timeout is reached. | |
Event handling.
| void pico_input_delay | ( | int | ms | ) |
Stops the program until the given number of milliseconds have passed.
| ms | milliseconds to wait |
| void pico_input_event | ( | Pico_Event * | evt, |
| int | type ) |
Stops the program until an event occurs.
| evt | where to save the event data, or NULL to ignore |
| type | type of event to wait for (Pico_EventType) |
| int pico_input_event_ask | ( | Pico_Event * | evt, |
| int | type ) |
Checks if an event has occured.
| evt | where to save the event data, or NULL to ignore |
| type | type of event to check the occurence (Pico_EventType) |
| int pico_input_event_timeout | ( | Pico_Event * | evt, |
| int | type, | ||
| int | timeout ) |
Stops the program until an event occurs or a timeout is reached.
| evt | where to save the event data, or NULL to ignore |
| type | type of event to wait for (Pico_EventType) |
| timeout | time limit to wait for (milliseconds) |