Skip to content

Commit

Permalink
Fixed change of FOV while using editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkensor committed Jul 18, 2019
1 parent b54d815 commit db8e1d1
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ class CameraTool extends Module
{
KeyMouseBinding toggleCamera = new KeyMouseBinding( GetModuleType(), "ToggleCamera" , "Toggle camera." );
KeyMouseBinding freezeCamera = new KeyMouseBinding( GetModuleType(), "FreezeCamera" , "Freezes camera." );
KeyMouseBinding freezePlayer = new KeyMouseBinding( GetModuleType(), "FreezePlayer" , "Freezes player." , true);
KeyMouseBinding freezePlayer = new KeyMouseBinding( GetModuleType(), "FreezePlayer" , "Freezes player.", true);
KeyMouseBinding followTarget = new KeyMouseBinding( GetModuleType(), "FollowTarget" , "Follows target.", true );
KeyMouseBinding toggleOrbit = new KeyMouseBinding( GetModuleType(), "ToggleOrbital", "Toggle orbital mode", true );
KeyMouseBinding targetCamera = new KeyMouseBinding( GetModuleType(), "TargetCamera" , "Targets objects or positions", true );
KeyMouseBinding zoomCamera = new KeyMouseBinding( GetModuleType(), "ZoomCamera" , "Zooms camera" , true);
KeyMouseBinding incCamSpeed = new KeyMouseBinding( GetModuleType(), "IncCamSpeed" , "Increase camera speed", true);
KeyMouseBinding decCamSpeed = new KeyMouseBinding( GetModuleType(), "DecCamSpeed" , "Decrease camera speed", true);
KeyMouseBinding zoomCamera = new KeyMouseBinding( GetModuleType(), "ZoomCamera" , "Zooms camera" );
KeyMouseBinding incCamSpeed = new KeyMouseBinding( GetModuleType(), "IncCamSpeed" , "Increase camera speed" );
KeyMouseBinding decCamSpeed = new KeyMouseBinding( GetModuleType(), "DecCamSpeed" , "Decrease camera speed" );

KeyMouseBinding release = new KeyMouseBinding( GetModuleType(), "Release" , "Release mouse", true);

Expand All @@ -110,15 +110,15 @@ class CameraTool extends Module

targetCamera.AddBinding( "mBMiddle" );

zoomCamera .AddBinding( "mBRight", KeyMouseActionType.HOLD );
zoomCamera .AddBinding( "kLControl", KeyMouseActionType.HOLD );
zoomCamera.AddBinding( "mBRight", KeyMouseActionType.HOLD );
zoomCamera.AddBinding( "kLControl", KeyMouseActionType.HOLD );

incCamSpeed.AddBinding( "mWheelUp" );
decCamSpeed.AddBinding( "mWheelDown" );

release.AddBinding( "mBRight", KeyMouseActionType.RELEASE );

//zoomCamera .AddBinding( MouseState.WHEEL, 0 );
// zoomCamera .AddBinding( MouseState.WHEEL, 0 );

RegisterKeyMouseBinding( toggleCamera );
RegisterKeyMouseBinding( freezeCamera );
Expand Down

0 comments on commit db8e1d1

Please sign in to comment.