Make ScreenMapControllers obey lockinput
This commit is contained in:
@@ -2744,7 +2744,7 @@ Fallback="ScreenOptionsServiceChild"
|
||||
NextScreen="ScreenOptionsService"
|
||||
HelpText=Screen.String("HelpTextMapControllers")
|
||||
#
|
||||
ScreenOnCommand=%function(self) MESSAGEMAN:Broadcast("KeyConfigRequestStall"); end;
|
||||
ScreenOnCommand=%function(self) MESSAGEMAN:Broadcast("KeyConfigRequestStall"); self:lockinput(5); end;
|
||||
#
|
||||
DevicesX=SCREEN_CENTER_X
|
||||
DevicesY=SCREEN_TOP+24
|
||||
|
||||
@@ -230,6 +230,9 @@ static bool IsAxis( const DeviceInput& DeviceI )
|
||||
|
||||
void ScreenMapControllers::Input( const InputEventPlus &input )
|
||||
{
|
||||
if( m_fLockInputSecs > 0 )
|
||||
return;
|
||||
|
||||
if( input.type != IET_FIRST_PRESS && input.type != IET_REPEAT )
|
||||
return; // ignore
|
||||
if( IsTransitioning() )
|
||||
|
||||
Reference in New Issue
Block a user