diff --git a/engine/controls.py b/engine/controls.py index 300f2e9..43250ec 100644 --- a/engine/controls.py +++ b/engine/controls.py @@ -62,4 +62,4 @@ class KeyBindings: self.scrolling += 1 def axis_scroll(self, x, y): - self.scroll_cursor(bool(x)*1, bool(y)*1) \ No newline at end of file + self.scroll_cursor(1 if x > 0 else -1, 1 if y > 0 else -1) \ No newline at end of file