mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Updated to work without keyboard event refactor.
This commit is contained in:
parent
b0455c7524
commit
2add57079d
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue