start game physics

This commit is contained in:
2023-01-22 13:09:38 +01:00
parent 5c6b6513c3
commit b7ca43006a
9 changed files with 154 additions and 39 deletions
+7 -3
View File
@@ -7,10 +7,14 @@ typedef void(*keyEvent_t)(void);
//renderer facing
void input_init(void);
void input_poll(SDL_Scancode);
void input_pollKeyDown(SDL_Scancode);
void input_pollKeyUp(SDL_Scancode);
//user facing
void input_listen(SDL_Scancode code, keyEvent_t);
void input_removeListener(SDL_Scancode code, keyEvent_t handler);
void input_listenKeyDown(SDL_Scancode code, keyEvent_t);
void input_removeKeyDownListener(SDL_Scancode code, keyEvent_t handler);
void input_listenKeyUp(SDL_Scancode code, keyEvent_t);
void input_removeKeyUpListener(SDL_Scancode code, keyEvent_t handler);
#endif