Refactor
This commit is contained in:
parent
49cfe70c0d
commit
72c4740f82
18 changed files with 592 additions and 203 deletions
|
|
@ -73,7 +73,6 @@ namespace tp {
|
|||
void processEvent();
|
||||
void processAllEvent();
|
||||
|
||||
|
||||
void setCursorOrigin(const Vec2F& origin);
|
||||
|
||||
[[nodiscard]] Vec2F getPointer() const;
|
||||
|
|
@ -87,6 +86,8 @@ namespace tp {
|
|||
|
||||
[[nodiscard]] halnf getPointerPressure() const;
|
||||
|
||||
void setEnableKeyEvents(bool);
|
||||
|
||||
private:
|
||||
void processEventUnguarded();
|
||||
|
||||
|
|
@ -108,6 +109,8 @@ namespace tp {
|
|||
InputState mInputStates[(int) InputID::LAST_KEY_CODE]{};
|
||||
|
||||
Timer mTimerEvent = Timer(1000);
|
||||
|
||||
bool mEnableKeyEvents = true;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue