summaryrefslogtreecommitdiffhomepage
path: root/examples/raylib_makefile_example.bat
diff options
context:
space:
mode:
authorKristian Lein-Mathisen <[email protected]>2022-03-14 16:00:59 +0100
committerGitHub <[email protected]>2022-03-14 16:00:59 +0100
commitec7250ca5437183e7d72884974ab41b8c1c4ed36 (patch)
tree6be9b73a355f092f006242a1e85cda614cb6652f /examples/raylib_makefile_example.bat
parentd2119848ed8ba3f557793ff3de9f3f557776dae8 (diff)
downloadraylib-ec7250ca5437183e7d72884974ab41b8c1c4ed36.tar.gz
raylib-ec7250ca5437183e7d72884974ab41b8c1c4ed36.zip
Improve joystick visualisation in gamepad example (#2390)
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, the demo reveals the analog feel of the joystick.
Diffstat (limited to 'examples/raylib_makefile_example.bat')
0 files changed, 0 insertions, 0 deletions