mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Further fixes to work around certain accelerators being missed, and additional command bleed-through.
This commit is contained in:
parent
4c13906865
commit
9f7513dc0b
1 changed files with 16 additions and 16 deletions
|
|
@ -90,7 +90,9 @@ void WindowInputGenerator::generateInputEvent( InputEventInfo &inputEvent )
|
||||||
for (int i = 0; i < mAcceleratorMap.size(); ++i)
|
for (int i = 0; i < mAcceleratorMap.size(); ++i)
|
||||||
{
|
{
|
||||||
const AccKeyMap &acc = mAcceleratorMap[i];
|
const AccKeyMap &acc = mAcceleratorMap[i];
|
||||||
if( acc.modifier & inputEvent.modifier && acc.keyCode == inputEvent.objInst )
|
if (!mWindow->getKeyboardTranslation() &&
|
||||||
|
(acc.modifier & inputEvent.modifier || (acc.modifier == 0 && inputEvent.modifier == 0))
|
||||||
|
&& acc.keyCode == inputEvent.objInst)
|
||||||
{
|
{
|
||||||
Con::evaluatef(acc.cmd);
|
Con::evaluatef(acc.cmd);
|
||||||
return;
|
return;
|
||||||
|
|
@ -106,9 +108,7 @@ void WindowInputGenerator::generateInputEvent( InputEventInfo &inputEvent )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (mWindow->getKeyboardTranslation())
|
if (mWindow->getKeyboardTranslation())
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
// If we get here we failed to process it with anything prior... so let
|
// If we get here we failed to process it with anything prior... so let
|
||||||
// the ActionMap handle it.
|
// the ActionMap handle it.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue