Input - ZenXChaos/MapleStorySDLCPP GitHub Wiki
Input
Input.h // Input.cpp
: Handles KeyBoard input.
private members:
std::map<SDL_Scancode, bool> keysDown;
std::map<SDL_Scancode, bool> keysUp;
public members:
void KeyDown(SDL_Scancode key);
void KeyUp(SDL_Scancode key);
bool IsKeyPressed(SDL_Scancode key);
keysDown
: Map of keys that are held down
keysUp
: Map of keys released
void KeyDown
: Handles KeyPress
void KeyUp
: Handles KeyRelease