You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sdl/examples/input/03-gamepad-polling
Sam Lantinga bb0d6221c1 Use PNG files for tests and examples
These are much smaller than the previous BMP files

Fixes https://github.com/libsdl-org/SDL/issues/14159
2 weeks ago
..
README.txt examples/input/03-gamepad-polling: Added some README notes about the web. 2 months ago
gamepad-polling.c Use PNG files for tests and examples 2 weeks ago
onmouseover.webp examples: Added input/03-gamepad-polling 2 months ago
thumbnail.png examples: Added input/03-gamepad-polling 2 months ago

README.txt

This example code looks for the current gamepad state once per frame,
and draws a visual representation of it. See 01-joystick-polling for the
equivalent example code for the lower-level joystick API.

Please note that on the web, gamepads don't show up until you interact with
them, so press a button to "connect" the controller.

Also note that on the web, gamepad triggers are treated as buttons (either
pressed or not) instead of axes (pressed 0 to 100 percent). This is a web
issue, not an SDL limitation.