mirror of
https://github.com/Stone-Red-Code/StoneRed.LogicSimulator.git
synced 2026-09-07 07:55:58 +02:00
Reset camera position when pressing the Home key
This commit is contained in:
@@ -253,6 +253,11 @@ internal class WorldScreen : SrlsScreen<Grid>
|
|||||||
srls.ShowWindow(new QuickMenu(worldData));
|
srls.ShowWindow(new QuickMenu(worldData));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (keyboardState.IsKeyDown(Keys.Home))
|
||||||
|
{
|
||||||
|
camera.Position = Vector2.Zero;
|
||||||
|
}
|
||||||
|
|
||||||
previousMouseState = mouseState;
|
previousMouseState = mouseState;
|
||||||
|
|
||||||
float movementSpeed = (float)Math.Pow(200, 2 - camera.Zoom);
|
float movementSpeed = (float)Math.Pow(200, 2 - camera.Zoom);
|
||||||
|
|||||||
Reference in New Issue
Block a user