grav well only follows mouse when space is pressed
[physics.git] / src / config / config.cpp
index ae569fa..895c1d9 100644 (file)
@@ -48,4 +48,9 @@ bool cfg::endGame()
     return input::wasReleased(SDLK_ESCAPE);
 }
 
+bool cfg::mouseWellOn()
+{
+    return input::isPressed(SDLK_SPACE);
+}
+
 /// ***** Private Methods *****