first commit

This commit is contained in:
2024-04-11 01:05:03 -04:00
commit 3398c52f8b
272 changed files with 35195 additions and 0 deletions

9
src/game/input/input.c Normal file
View File

@@ -0,0 +1,9 @@
#include "input.h"
void
input_tick(Input* self)
{
keyboard_update(&self->keyboard);
mouse_update(&self->mouse);
event_update(&self->event);
}

14
src/game/input/input.h Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
#include "../../engine/event.h"
#include "../../engine/keyboard.h"
#include "../../engine/mouse.h"
typedef struct Input
{
Keyboard keyboard;
Mouse mouse;
Event event;
} Input;
void input_tick(Input* self);