mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-01 18:45:13 +00:00
Modified files for SDL2.
This commit is contained in:
parent
33a0579735
commit
475f218bcd
33 changed files with 436 additions and 136 deletions
|
|
@ -85,6 +85,19 @@ void WindowInputGenerator::generateInputEvent( InputEventInfo &inputEvent )
|
|||
if( !mInputController || !mFocused )
|
||||
return;
|
||||
|
||||
if (inputEvent.action == SI_MAKE && inputEvent.deviceType == KeyboardDeviceType)
|
||||
{
|
||||
for( int i = 0; i < mAcceleratorMap.size(); ++i )
|
||||
{
|
||||
const AccKeyMap &acc = mAcceleratorMap[i];
|
||||
if( acc.modifier & inputEvent.modifier && acc.keyCode == inputEvent.objInst )
|
||||
{
|
||||
Con::evaluatef(acc.cmd);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Give the ActionMap first shot.
|
||||
if (ActionMap::handleEventGlobal(&inputEvent))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue