FDOSTUI
FreeDOS Text User Interface
|
keyboard and mouse polling routines More...
Go to the source code of this file.
Classes | |
union | poll_event_record |
continaer to hold an event record More... | |
struct | poll_event |
structure to hold event More... | |
Enumerations | |
enum | poll_event_type { EVENT_KEY, EVENT_MOUSE, EVENT_SCREEN_RESIZE } |
indicator of the type of event that occurred More... | |
Functions | |
void | poll_keyboard_unget (struct event_key const *const i_event) |
put back a key event into queue More... | |
int | poll_block (struct poll_event *const o_event) |
polls event queue More... | |
keyboard and mouse polling routines
enum poll_event_type |
int poll_block | ( | struct poll_event *const | o_event | ) |
polls event queue
[out] | o_event | event object |
Waits (blocks) in an infinite cycle for a key event to occur. Once an event has occurred the event is returned.
void poll_keyboard_unget | ( | struct event_key const *const | i_event | ) |
put back a key event into queue
[in] | i_event | event to place in queue |
The quueue can only hold one event record.