From 9557422ef342a03feea273275acdbf9139ea0dd9 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Thu, 17 Oct 2019 18:51:00 -0500 Subject: [PATCH] Update JoeyLib Gamepad Functions --- JoeyLib-Gamepad-Functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JoeyLib-Gamepad-Functions.md b/JoeyLib-Gamepad-Functions.md index 415f33d..c6d16b7 100644 --- a/JoeyLib-Gamepad-Functions.md +++ b/JoeyLib-Gamepad-Functions.md @@ -2,7 +2,7 @@ #### jlGameGetAxis ```c -int jlGameGetAxis(byte which); +jint16 jlGameGetAxis(byte which); ``` Returns a value between -128 and 127 with 0 representing the centered position. Axis 0 is the horizontal (X) axis and axis 1 is the vertical (Y) axis. On systems with analog controllers, the result will vary depending on how far the axis has moved off center. You will need to take into account a small "dead zone" for sticks that do not have a precise center position. On platforms with more than one analog stick, JoeyLib uses the left-hand stick. If the platform supports more than one controller, all connected controllers at application startup will be used.