macros and ui element

This commit is contained in:
2026-03-16 14:56:32 +01:00
parent 3a22a3746f
commit 29bb9ca0fe
11 changed files with 190 additions and 30 deletions

View File

@@ -11,9 +11,18 @@ namespace Game {
static bool isKeyPressed(SDL_Scancode key);
static bool isKeyJustPressed(SDL_Scancode key);
static bool isKeyJustReleased(SDL_Scancode key);
static bool isMouseButtonPressed(Uint8 button);
static bool isMouseButtonJustPressed(Uint8 button);
static bool isMouseButtonJustReleased(Uint8 button);
static float getMouseX();
static float getMouseY();
private:
static const bool* mCurrentKeyStates;
static bool* mPreviousKeyStates;
static const bool* mPreviousKeyStates;
static int mNumKeys;
static SDL_MouseButtonFlags mCurrentMouseButtonStates;
static SDL_MouseButtonFlags mPreviousMouseButtonStates;
static float mMouseX;
static float mMouseY;
};
}