Add unigi_input_mouse_capture

This commit is contained in:
Fierelier 2024-09-12 03:14:24 +02:00
parent cc36d7c9da
commit 4fe6e4dcbf
2 changed files with 9 additions and 3 deletions

3
main.h
View File

@ -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_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_time_span unigi_time_get();

View File

@ -1,14 +1,17 @@
#ifndef unigi_header_types
#define unigi_header_types
#include <stdint.h>
// Main
typedef uint8_t unigi_type_bool;
// Events
typedef uint8_t unigi_type_error;
typedef uint8_t unigi_type_event_enum;
typedef uint8_t unigi_type_error;
typedef uint8_t unigi_type_event_enum;
// Graphics
typedef uint16_t unigi_type_resolution_2d_coord;
typedef uint32_t unigi_type_resolution_1d_coord;
typedef uint8_t unigi_type_resolution_depth;
typedef uint8_t unigi_type_resolution_depth;
typedef uint16_t unigi_type_color;
// Input