mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +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)
|
if (!mSendModifierEvents)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const char* actionString = INPUTMGR->findKeyboardMapDescFromCode(event.objInst);
|
char keyString[32];
|
||||||
onInputEvent_callback(deviceString, actionString, 1);
|
if (!ActionMap::getKeyString(event.objInst, keyString))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
onInputEvent_callback(deviceString, keyString, 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue