Graphics refactor finished

This commit is contained in:
IlyaShurupov 2024-03-20 11:31:50 +03:00 committed by Ilya Shurupov
parent bfbdd0e33b
commit 8451c56e93
12 changed files with 114 additions and 110 deletions

View file

@ -69,11 +69,13 @@ namespace tp {
bool isEvents();
void processEvent();
const Vec2F& getPointer() const;
bool isPressed(InputID id) const;
bool isReleased(InputID id) const;
bool isDown(InputID id) const;
halnf getScrollY() const;
[[nodiscard]] const Vec2F& getPointer() const;
[[nodiscard]] bool isPressed(InputID id) const;
[[nodiscard]] bool isReleased(InputID id) const;
[[nodiscard]] bool isDown(InputID id) const;
[[nodiscard]] halnf getScrollY() const;
[[nodiscard]] halnf getPointerPressure() const;
private:
std::mutex mMutex = {};
@ -83,7 +85,7 @@ namespace tp {
// input states
Vec2F mPointer;
halnf pressure = 0;
halnf mPointerPressure = 0;
InputState mInputStates[(int) InputID::LAST_KEY_CODE]{};
};