Reset callbacks on remap

This commit is contained in:
vaxerski
2022-11-18 13:53:54 +00:00
parent 5d39223239
commit f91f3d1c81
2 changed files with 18 additions and 0 deletions

View File

@@ -205,6 +205,14 @@ public:
m_bRemoveBeginAfterRan = remove;
}
/* resets all callbacks. Does not call any. */
void resetAllCallbacks() {
m_fBeginCallback = nullptr;
m_fEndCallback = nullptr;
m_bRemoveBeginAfterRan = false;
m_bRemoveEndAfterRan = false;
}
private:
Vector2D m_vValue = Vector2D(0,0);