From 2add57079d9026977c3ffc7fa70ecb6aafcde529 Mon Sep 17 00:00:00 2001 From: OTHGMars Date: Thu, 10 Jan 2019 17:44:30 -0500 Subject: [PATCH] Updated to work without keyboard event refactor. --- Engine/source/gui/utility/guiInputCtrl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Engine/source/gui/utility/guiInputCtrl.cpp b/Engine/source/gui/utility/guiInputCtrl.cpp index ba4eec0aa..907d861a9 100644 --- a/Engine/source/gui/utility/guiInputCtrl.cpp +++ b/Engine/source/gui/utility/guiInputCtrl.cpp @@ -166,8 +166,11 @@ bool GuiInputCtrl::onInputEvent( const InputEventInfo &event ) if (!mSendModifierEvents) 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 {