Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve joystick visualisation in gamepad example #2390

Merged
merged 1 commit into from
Mar 14, 2022
Merged

Improve joystick visualisation in gamepad example #2390

merged 1 commit into from
Mar 14, 2022

Commits on Mar 14, 2022

  1. Improve joystick visualisation in gamepad example

    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.
    kristianlm committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    2d35c41 View commit details
    Browse the repository at this point in the history