input and handler possibly fixed and point
This commit is contained in:
parent
d6281e8eac
commit
3fa74e8f9e
7 changed files with 288 additions and 0 deletions
21
include/arc/input/sdl/keyboard.h
Normal file
21
include/arc/input/sdl/keyboard.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef ARC_SDL_KEYBOARD_H_
|
||||
#define ARC_SDL_KEYBOARD_H_
|
||||
|
||||
#ifdef ARC_SDL
|
||||
#include <SDL.h>
|
||||
#include "arc/input/keyboard.h"
|
||||
|
||||
struct ARC_Keyboard {
|
||||
SDL_Event *event;
|
||||
|
||||
ARC_KeyboardState *keys;
|
||||
ARC_KeyboardState *released;
|
||||
};
|
||||
|
||||
struct ARC_KeyboardInfo {
|
||||
SDL_Event *event;
|
||||
};
|
||||
|
||||
#endif // ARC_SDL
|
||||
|
||||
#endif // !ARC_SDL_KEYBOARD_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue