summaryrefslogtreecommitdiffhomepage
path: root/parser/raylib_parser.c
diff options
context:
space:
mode:
authorKristian Lein-Mathisen <[email protected]>2022-03-14 17:16:09 +0100
committerGitHub <[email protected]>2022-03-14 17:16:09 +0100
commit4954778f684b41046e72743fc32d29c74ea639f4 (patch)
treeb1f2854685c1a97f16dec6b75785ef9359471ce3 /parser/raylib_parser.c
parentec7250ca5437183e7d72884974ab41b8c1c4ed36 (diff)
downloadraylib-4954778f684b41046e72743fc32d29c74ea639f4.tar.gz
raylib-4954778f684b41046e72743fc32d29c74ea639f4.zip
Improve joystick visualisation in gamepad example again (#2391)
As prior commit, but complete fix for XBox controller and trigger buttons too. > The joystick range is a float from -1 through +1. Casting this to int > yields only three possible values: -1, 0, and 1. This gives a > misleading joystick placement in the demo. > > By casting to int after the multiplication to get pixel values, the > demo reveals the analog feel of the joystick.
Diffstat (limited to 'parser/raylib_parser.c')
0 files changed, 0 insertions, 0 deletions