mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-07-01 17:22:15 +02:00
sdl2: minor cleanup
This commit is contained in:
parent
4df65af939
commit
e556d8c675
@ -78,8 +78,8 @@ int main(int argc, char *argv[])
|
|||||||
case SDL_JOYBUTTONDOWN:
|
case SDL_JOYBUTTONDOWN:
|
||||||
SDL_Log("Joystick %d button %d down\n",
|
SDL_Log("Joystick %d button %d down\n",
|
||||||
event.jbutton.which, event.jbutton.button);
|
event.jbutton.which, event.jbutton.button);
|
||||||
// seek for joystick #0
|
|
||||||
// https://github.com/devkitPro/SDL/blob/switch-sdl2/src/joystick/switch/SDL_sysjoystick.c#L52
|
// https://github.com/devkitPro/SDL/blob/switch-sdl2/src/joystick/switch/SDL_sysjoystick.c#L52
|
||||||
|
// seek for joystick #0
|
||||||
if (event.jbutton.which == 0) {
|
if (event.jbutton.which == 0) {
|
||||||
if (event.jbutton.button == 0) {
|
if (event.jbutton.button == 0) {
|
||||||
// (A) button down
|
// (A) button down
|
||||||
|
Loading…
Reference in New Issue
Block a user