summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chickadee/input/controller.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/input/controller.scm b/chickadee/input/controller.scm
index e78623e..cb44120 100644
--- a/chickadee/input/controller.scm
+++ b/chickadee/input/controller.scm
@@ -79,7 +79,7 @@ Possible return values are:
"Return #t if BUTTON is currently being pressed on CONTROLLER."
(sdl2:game-controller-button-pressed? (unwrap-controller controller) button))
-(define (controller-axis controller axis)
+(define-inlinable (controller-axis controller axis)
"Return a floating point value in the range [-1, 1] corresponding to
how much AXIS is being pushed on CONTROLLER. 0 is returned if AXIS is
not being pushed at all."