| maug
    Quick and dirty C mini-augmentation library. | 
Functions and constants for polling and interpreting user input. More...

| Data Structures | |
| struct | RETROFLAT_INPUT | 
| Struct passed to retroflat_poll_input() to hold return data.  More... | |
| Macros | |
| #define | retroflat_buffer_bksp(buffer, buffer_cur, buffer_sz) | 
| Remove a character from a text buffer before cursor position.  More... | |
| #define | retroflat_buffer_insert(c, buffer, buffer_cur, buffer_sz, buffer_mx) | 
| Insert a character into a text buffer at cursor position.  More... | |
| #define | RETROFLAT_INPUT_MOD_SHIFT 0x01 | 
| #define | RETROFLAT_INPUT_MOD_ALT 0x02 | 
| #define | RETROFLAT_INPUT_MOD_CTRL 0x04 | 
| #define | RETROFLAT_INPUT_FORCE_UPPER 0x08 | 
| #define | retroflat_case_key(key, pad) case pad: case key: | 
| Specify cases for a select() on the result of retroflat_poll_input() for keyboard or game pad as available.  More... | |
| #define | retroflat_or_key(input, key, pad) (((input) == (pad)) || ((input) == (key))) | 
| Functions | |
| RETROFLAT_IN_KEY | retroflat_poll_input (struct RETROFLAT_INPUT *input) | 
| Poll input devices (keyboard/mouse) and return the latest event.  More... | |
Functions and constants for polling and interpreting user input.
| #define retroflat_buffer_bksp | ( | buffer, | |
| buffer_cur, | |||
| buffer_sz | |||
| ) | 
Remove a character from a text buffer before cursor position.
| #define retroflat_buffer_insert | ( | c, | |
| buffer, | |||
| buffer_cur, | |||
| buffer_sz, | |||
| buffer_mx | |||
| ) | 
Insert a character into a text buffer at cursor position.
| #define retroflat_case_key | ( | key, | |
| pad | |||
| ) | case pad: case key: | 
Specify cases for a select() on the result of retroflat_poll_input() for keyboard or game pad as available.
Systems with no keyboard will ignore the key param and systems with no game pad will ignore the pad param.
| RETROFLAT_IN_KEY retroflat_poll_input | ( | struct RETROFLAT_INPUT * | input | ) | 
Poll input devices (keyboard/mouse) and return the latest event.
| input | Pointer to a RETROFLAT_INPUT struct to store extended info. |