Refactor
This commit is contained in:
parent
279cf58dff
commit
4b6e7da994
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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -60,7 +60,9 @@ namespace tp {
|
|||
void pushClamp(const RectF& rec);
|
||||
void popClamp();
|
||||
|
||||
void debugCross(RectF rec, const RGBA& col);
|
||||
void rect(RectF rec, const RGBA& col, halnf round = 0);
|
||||
void frame(RectF rec, const RGBA& col, halnf round = 0);
|
||||
void circle(Vec2F pos, halnf size, const RGBA& col);
|
||||
void text(const char*, const RectF&, halnf size, Align, halnf padding, const RGBA&);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue