mirror of
https://github.com/Stone-Red-Code/StoneRed.LogicSimulator.git
synced 2026-09-04 09:06:29 +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));
|
||||
}
|
||||
|
||||
if (keyboardState.IsKeyDown(Keys.Home))
|
||||
{
|
||||
camera.Position = Vector2.Zero;
|
||||
}
|
||||
|
||||
previousMouseState = mouseState;
|
||||
|
||||
float movementSpeed = (float)Math.Pow(200, 2 - camera.Zoom);
|
||||
|
||||
Reference in New Issue
Block a user