summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2017-01-10 19:27:34 -0500
committerDavid Thompson <dthompson2@worcester.edu>2017-01-10 19:42:49 -0500
commit3489fbc2fe2633906feaf4ac1cc192f767d4445a (patch)
tree7c75e1418b77f11d1095b6cbb6f2aa935f980410
parent98dc87a054c1108bd5f4bb093024d962ce0c8ce2 (diff)
input: controller: Inline controller-axis calls.
-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."