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_
|
||||
24
include/arc/input/sdl/mouse.h
Normal file
24
include/arc/input/sdl/mouse.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef ARC_SDL_MOUSE_H_
|
||||
#define ARC_SDL_MOUSE_H_
|
||||
|
||||
#ifdef ARC_SDL
|
||||
#include <SDL.h>
|
||||
#include "arc/input/mouse.h"
|
||||
#include "arc/math/point.h"
|
||||
|
||||
struct ARC_Mouse {
|
||||
SDL_Event *event;
|
||||
ARC_Point *coords;
|
||||
int32_t *scroll;
|
||||
|
||||
ARC_MouseState *buttons;
|
||||
uint8_t *buttonsReleased;
|
||||
};
|
||||
|
||||
struct ARC_MouseInfo {
|
||||
SDL_Event *event;
|
||||
};
|
||||
|
||||
#endif // ARC_SDL
|
||||
|
||||
#endif // !ARC_SDL_MOUSE_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue