Mouse wheel zooms external camera

This commit is contained in:
Kevin Anthoney 2016-04-13 13:23:39 +01:00
parent d478d9c205
commit 1648959dbb

View File

@ -3301,11 +3301,11 @@ static NSTimeInterval time_last_frame;
customView_pressed = NO;
if ([UNIVERSE viewDirection] && [gameView isCapsLockOn])
{
if ([gameView isDown:gvPageDownKey] && ![gameView isDown:gvPageUpKey])
if (([gameView isDown:gvPageDownKey] && ![gameView isDown:gvPageUpKey]) || [gameView mouseWheelState] == gvMouseWheelDown)
{
[self customViewZoomOut];
}
if ([gameView isDown:gvPageUpKey] && ![gameView isDown:gvPageDownKey])
if (([gameView isDown:gvPageUpKey] && ![gameView isDown:gvPageDownKey]) || [gameView mouseWheelState] == gvMouseWheelUp)
{
[self customViewZoomIn];
}