|
|
@ -132,8 +132,6 @@ hsBool plInputInterface::ProcessKeyBindings( plInputEventMsg *msg ) |
|
|
|
plKeyEventMsg *keyMsg = plKeyEventMsg::ConvertNoRef( msg ); |
|
|
|
plKeyEventMsg *keyMsg = plKeyEventMsg::ConvertNoRef( msg ); |
|
|
|
if( keyMsg == nil ) |
|
|
|
if( keyMsg == nil ) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
if ( keyMsg->GetKeyChar()) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// We might have controls that are currently enabled that are triggered in part by
|
|
|
|
/// We might have controls that are currently enabled that are triggered in part by
|
|
|
@ -272,6 +270,11 @@ hsBool plInputInterface::ProcessKeyBindings( plInputEventMsg *msg ) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Still here? Only proces bound keys for KEYDOWNS.
|
|
|
|
|
|
|
|
// We'll pretend to process CHARs so they don't get sent on...
|
|
|
|
|
|
|
|
if ( keyMsg->GetKeyChar() ) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
/// OK, generate the message to send
|
|
|
|
/// OK, generate the message to send
|
|
|
|
plCtrlCmd *pCmd = TRACKED_NEW plCtrlCmd( this ); |
|
|
|
plCtrlCmd *pCmd = TRACKED_NEW plCtrlCmd( this ); |
|
|
|
pCmd->fControlCode = binding->GetCode(); |
|
|
|
pCmd->fControlCode = binding->GetCode(); |
|
|
|