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

View File

@ -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;