mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Disable input focus disable to preserve sanity (temp)
This commit is contained in:
parent
126828131d
commit
639b397394
1 changed files with 2 additions and 2 deletions
|
|
@ -82,7 +82,7 @@ WindowInputGenerator::~WindowInputGenerator()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void WindowInputGenerator::generateInputEvent( InputEventInfo &inputEvent )
|
void WindowInputGenerator::generateInputEvent( InputEventInfo &inputEvent )
|
||||||
{
|
{
|
||||||
if (!mInputController || !mFocused)
|
if (!mInputController)// || !mFocused)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (inputEvent.action == SI_MAKE && inputEvent.deviceType == KeyboardDeviceType)
|
if (inputEvent.action == SI_MAKE && inputEvent.deviceType == KeyboardDeviceType)
|
||||||
|
|
@ -331,7 +331,7 @@ void WindowInputGenerator::handleKeyboard( WindowId did, U32 modifier, U32 actio
|
||||||
void WindowInputGenerator::handleInputEvent( U32 deviceInst, F32 fValue, F32 fValue2, F32 fValue3, F32 fValue4, S32 iValue, U16 deviceType, U16 objType, U16 ascii, U16 objInst, U8 action, U8 modifier )
|
void WindowInputGenerator::handleInputEvent( U32 deviceInst, F32 fValue, F32 fValue2, F32 fValue3, F32 fValue4, S32 iValue, U16 deviceType, U16 objType, U16 ascii, U16 objInst, U8 action, U8 modifier )
|
||||||
{
|
{
|
||||||
// Skip it if we don't have focus.
|
// Skip it if we don't have focus.
|
||||||
if(!mInputController || !mFocused)
|
if(!mInputController)// || !mFocused)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Convert to an InputEventInfo and pass it around for processing.
|
// Convert to an InputEventInfo and pass it around for processing.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue