12#define OSIO_MOUSE_LEFT 0x01
13#define OSIO_MOUSE_RIGHT 0x03
15#ifndef OSIO_PRINTF_BUFFER_SZ
16# define OSIO_PRINTF_BUFFER_SZ 512
19#ifndef OSIO_PRINTF_PREFIX_SZ
20# define OSIO_PRINTF_PREFIX_SZ 128
23#ifndef OSIO_NUM_BUFFER_SZ
24# define OSIO_NUM_BUFFER_SZ 50
27void osio_parse_args(
int argc,
char* argv[],
struct NETIO_CFG* config );
31void osio_ui_cleanup();
33int osio_loop(
struct NETIO_CFG* config );
36 const char* file,
int line,
int status,
const char* fmt, ... );
50void osio_mouse_move( uint16_t mouse_x, uint16_t mouse_y );
52void osio_mouse_down( uint16_t mouse_x, uint16_t mouse_y, uint16_t mouse_btn );
54void osio_mouse_up( uint16_t mouse_x, uint16_t mouse_y, uint16_t mouse_btn );
56void osio_key_down( uint16_t key_id, uint16_t key_mod, uint16_t key_btn );
58void osio_key_up( uint16_t key_id, uint16_t key_mod, uint16_t key_btn );
60void osio_key_rpt( uint16_t key_id, uint16_t key_mod, uint16_t key_btn );
62void osio_set_clipboard(
const char* buffer,
size_t buffer_sz );
64void osio_logging_setup();
66void osio_logging_cleanup();
68int minput_main(
struct NETIO_CFG* config );
72#define MAKEWORD( p1, p2 ) \
73 ((WORD)((BYTE)(uint32_t*)(p1) & 0xFF) | \
74 ((WORD)((BYTE)(uint32_t*)(p2) & 0xFF) << 8))
uint32_t osio_get_time()
Get the current system time in milliseconds.
void osio_screen_get_w_h(uint16_t *screen_w_p, uint16_t *screen_h_p)
Get the system screen width/height in pixels.