From 3489fbc2fe2633906feaf4ac1cc192f767d4445a Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 10 Jan 2017 19:27:34 -0500 Subject: input: controller: Inline controller-axis calls. --- chickadee/input/controller.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." -- cgit v1.2.3