diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-26 20:18:41 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-26 20:18:41 -0400 |
commit | 0294878ddabd07a677930536daff0e6ca3bea081 (patch) | |
tree | cbb466c102f636c930c5c5577b24301944b269e7 /src/screen.h | |
parent | fix color to use argb (diff) | |
download | raycaster-0294878ddabd07a677930536daff0e6ca3bea081.tar.gz raycaster-0294878ddabd07a677930536daff0e6ca3bea081.tar.bz2 raycaster-0294878ddabd07a677930536daff0e6ca3bea081.zip |
Diffstat (limited to '')
-rw-r--r-- | src/screen.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/screen.h b/src/screen.h index 423af7e..23094bb 100644 --- a/src/screen.h +++ b/src/screen.h @@ -2,7 +2,6 @@ #define _XOPEN_SOURCE 600 #define _POSIX_C_SOURCE 200112L -// #define _POSIX_C_SOURCE 200809L #include <stdint.h> #include <stdbool.h> #include <pthread.h> @@ -29,19 +28,19 @@ struct Screen { #define Screen struct Screen -#define KEY_W 17 -#define KEY_A 30 -#define KEY_S 31 -#define KEY_D 32 -#define KEY_UP 103 -#define KEY_DOWN 108 -#define KEY_LEFT 105 -#define KEY_RIGHT 106 -#define KEY_MINUS 12 -#define KEY_EQUALS 13 -#define KEY_ESC 1 +#define KEY_W 25 +#define KEY_A 38 +#define KEY_S 39 +#define KEY_D 40 +#define KEY_UP 111 +#define KEY_DOWN 116 +#define KEY_LEFT 113 +#define KEY_RIGHT 114 +#define KEY_MINUS 20 +#define KEY_EQUALS 21 +#define KEY_ESC 9 -void init_screen(Screen* screen, uint16_t width, uint16_t height, const char* title); +void init_screen(Screen* screen, uint16_t width, uint16_t height, const char* title, uint16_t update_rate); bool poll_screen(Screen* screen); void free_screen(Screen* screen); |