class Elite3rdPersonMutatorInteraction extends Interaction
	Config(EM_XX);

var PlayerController PC;
var config name ToggleCameraKey, IncreaseCameraScaleKey, DecreaseCameraScaleKey;

function InitInteraction( PlayerController Player )
{	
	PC = Player;
}

function bool InputKey( int ControllerId, name Key, EInputEvent EventType, optional float AmountDepressed = 1.f, optional bool bGamepad )
{
    local ElitePawn EP;

    EP = ElitePawn( PC.Pawn );
    if ( EP != None )
    {
        if ( Key == ToggleCameraKey && EventType == IE_Pressed )
        {
            EP.ToggleCamera();
        }
        
        if( Key == IncreaseCameraScaleKey && EventType == IE_Pressed )
        {
            EP.IncreaseCameraScale();
        }
    
        if( Key == DecreaseCameraScaleKey && EventType == IE_Pressed )
        {
            EP.DecreaseCameraScale();
        }
    }

	return false;
}

defaultproperties
{
   ToggleCameraKey=P
   IncreaseCameraScaleKey=I
   DecreaseCameraScaleKey=O
   __OnReceivedNativeInputKey__Delegate=Default__Elite3rdPersonMutatorInteraction.InputKey
   Name="Default__Elite3rdPersonMutatorInteraction"
   ObjectArchetype=Interaction'Engine.Default__Interaction'
}