mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
examples: Minor tweak to joystick examples' comments.
This commit is contained in:
@@ -13,8 +13,8 @@
|
|||||||
and knows how to map arbitrary buttons and such to look like an
|
and knows how to map arbitrary buttons and such to look like an
|
||||||
Xbox/PlayStation/etc gamepad. This is easier, and better, for many games,
|
Xbox/PlayStation/etc gamepad. This is easier, and better, for many games,
|
||||||
but isn't necessarily a good fit for complex apps and hardware. A flight
|
but isn't necessarily a good fit for complex apps and hardware. A flight
|
||||||
simulator, a realistic racing game, etc, might want this interface instead
|
simulator, a realistic racing game, etc, might want the joystick interface
|
||||||
of gamepads. */
|
instead of gamepads. */
|
||||||
|
|
||||||
/* SDL can handle multiple joysticks, but for simplicity, this program only
|
/* SDL can handle multiple joysticks, but for simplicity, this program only
|
||||||
deals with the first stick it sees. */
|
deals with the first stick it sees. */
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
and knows how to map arbitrary buttons and such to look like an
|
and knows how to map arbitrary buttons and such to look like an
|
||||||
Xbox/PlayStation/etc gamepad. This is easier, and better, for many games,
|
Xbox/PlayStation/etc gamepad. This is easier, and better, for many games,
|
||||||
but isn't necessarily a good fit for complex apps and hardware. A flight
|
but isn't necessarily a good fit for complex apps and hardware. A flight
|
||||||
simulator, a realistic racing game, etc, might want this interface instead
|
simulator, a realistic racing game, etc, might want the joystick interface
|
||||||
of gamepads. */
|
instead of gamepads. */
|
||||||
|
|
||||||
#define SDL_MAIN_USE_CALLBACKS 1 /* use the callbacks instead of main() */
|
#define SDL_MAIN_USE_CALLBACKS 1 /* use the callbacks instead of main() */
|
||||||
#include <SDL3/SDL.h>
|
#include <SDL3/SDL.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user