Browse Source

Updated to work without keyboard event refactor.

OTHGMars 6 years ago
parent
commit
2add57079d
1 changed files with 5 additions and 2 deletions
  1. 5 2
      Engine/source/gui/utility/guiInputCtrl.cpp

+ 5 - 2
Engine/source/gui/utility/guiInputCtrl.cpp

@@ -166,8 +166,11 @@ bool GuiInputCtrl::onInputEvent( const InputEventInfo &event )
             if (!mSendModifierEvents)
             if (!mSendModifierEvents)
                return false;
                return false;
 
 
-            const char* actionString = INPUTMGR->findKeyboardMapDescFromCode(event.objInst);
-            onInputEvent_callback(deviceString, actionString, 1);
+            char keyString[32];
+            if (!ActionMap::getKeyString(event.objInst, keyString))
+               return false;
+
+            onInputEvent_callback(deviceString, keyString, 1);
          }
          }
          else
          else
          {
          {