hooksystem: add callbackinfo struct and cancellable events
This commit is contained in:
parent
c6233a790f
commit
a61eb7694d
13 changed files with 39 additions and 24 deletions
|
|
@ -77,7 +77,7 @@ CKeybindManager::CKeybindManager() {
|
|||
|
||||
m_tScrollTimer.reset();
|
||||
|
||||
g_pHookSystem->hookDynamic("configReloaded", [this](void* hk, std::any param) {
|
||||
g_pHookSystem->hookDynamic("configReloaded", [this](void* hk, SCallbackInfo& info, std::any param) {
|
||||
// clear cuz realloc'd
|
||||
m_pActiveKeybind = nullptr;
|
||||
m_vPressedSpecialBinds.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue