summaryrefslogtreecommitdiff
path: root/src/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.cpp')
-rw-r--r--src/interface.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index 16fc77d..17c1727 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -68,8 +68,16 @@ void state_t::tick(void)
camera.target_zoom -= event.mouseWheelScroll.delta;
if (camera.target_zoom < 0)
camera.target_zoom = 0;
- if (camera.target_zoom > 10)
- camera.target_zoom = 10;
+ if (camera.target_zoom > 11)
+ camera.target_zoom = 11;
+ break;
+
+ case sf::Event::KeyPressed:
+ if (event.key.code == sf::Keyboard::Key::I) {
+ sf::Vector2i mouse = sf::Mouse::getPosition(*window);
+ sf::Vector2f vmouse = window->mapPixelToCoords(mouse);
+ game->world.debug_point(vmouse);
+ }
break;
default:;