From 92d41775ac92eb4dcad188c75e5076c171b54cc6 Mon Sep 17 00:00:00 2001 From: Cam Date: Sat, 18 Mar 2023 07:27:00 -0400 Subject: [PATCH] Add files via upload --- src/nagaX11.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nagaX11.cpp b/src/nagaX11.cpp index a4624dc..762564d 100644 --- a/src/nagaX11.cpp +++ b/src/nagaX11.cpp @@ -128,7 +128,7 @@ class NagaDaemon const int size = sizeof(struct input_event) * 64; vector devices; bool areSideBtnEnabled = true, areExtraBtnEnabled = true; - map> currentConfigPtr; + map> * currentConfigPtr; void initConf() { @@ -227,7 +227,7 @@ class NagaDaemon configSwitcher->unScheduleReMap(); currentConfigName = configName; - currentConfigPtr = macroEventsKeyMaps[currentConfigName]; + currentConfigPtr = ¯oEventsKeyMaps[currentConfigName]; if (!silent) { (void)!(system(("notify-send -t 200 'New config :' '" + configName + "'").c_str())); @@ -312,7 +312,7 @@ class NagaDaemon case 12: case 13: checkForWindowConfig(); - thread(runActions, ¤tConfigPtr[ev11->code - 1][ev11->value == 1]).detach(); // real key number = ev11->code - 1 + thread(runActions, &(*currentConfigPtr)[ev11->code - 1][ev11->value == 1]).detach(); // real key number = ev11->code - 1 break; } } @@ -328,7 +328,7 @@ class NagaDaemon case 275: case 276: checkForWindowConfig(); - thread(runActions, ¤tConfigPtr[ev11->code - 262][ev11->value == 1]).detach(); // real key number = ev11->code - OFFSET (#262) + thread(runActions, &(*currentConfigPtr)[ev11->code - 262][ev11->value == 1]).detach(); // real key number = ev11->code - OFFSET (#262) break; } }