first commit
This commit is contained in:
9
src/game/input/input.c
Normal file
9
src/game/input/input.c
Normal 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
14
src/game/input/input.h
Normal 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);
|
Reference in New Issue
Block a user