Add unigi_input_mouse_capture
This commit is contained in:
parent
cc36d7c9da
commit
4fe6e4dcbf
3
main.h
3
main.h
@ -13,6 +13,9 @@ void unigi_graphics_draw(unigi_type_resolution_1d_coord index, unigi_type_color
|
|||||||
void unigi_graphics_blit(unigi_type_resolution_1d_coord index, unigi_type_color * pixels, unigi_type_resolution_1d_coord length);
|
void unigi_graphics_blit(unigi_type_resolution_1d_coord index, unigi_type_color * pixels, unigi_type_resolution_1d_coord length);
|
||||||
void unigi_graphics_flush();
|
void unigi_graphics_flush();
|
||||||
|
|
||||||
|
// INPUT
|
||||||
|
void unigi_input_mouse_capture(unigi_type_bool captured);
|
||||||
|
|
||||||
unigi_type_error unigi_window_create(unigi_type_resolution resolution, char * title);
|
unigi_type_error unigi_window_create(unigi_type_resolution resolution, char * title);
|
||||||
unigi_type_time_span unigi_time_get();
|
unigi_type_time_span unigi_time_get();
|
||||||
|
|
||||||
|
3
types.h
3
types.h
@ -1,6 +1,9 @@
|
|||||||
#ifndef unigi_header_types
|
#ifndef unigi_header_types
|
||||||
#define unigi_header_types
|
#define unigi_header_types
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
// Main
|
||||||
|
typedef uint8_t unigi_type_bool;
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
typedef uint8_t unigi_type_error;
|
typedef uint8_t unigi_type_error;
|
||||||
typedef uint8_t unigi_type_event_enum;
|
typedef uint8_t unigi_type_event_enum;
|
||||||
|
Loading…
Reference in New Issue
Block a user