diff options
author | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2016-12-28 20:11:29 +0100 |
---|---|---|
committer | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2016-12-28 20:11:29 +0100 |
commit | 70a38d227bea0885ecb0ff37e55dddd7e2dd18c7 (patch) | |
tree | 9dda20a8a6d03774f8fb06bac98c10f040d8fd06 /test/testgamecontroller.c | |
parent | 9a8c21d4acc892521cd8aea4895963bef81cb0dc (diff) | |
download | sdl-70a38d227bea0885ecb0ff37e55dddd7e2dd18c7.tar.gz |
Fixed compiling of testgamecontroller program with C++.
Diffstat (limited to 'test/testgamecontroller.c')
-rw-r--r-- | test/testgamecontroller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c index 117e28026..1fa29d602 100644 --- a/test/testgamecontroller.c +++ b/test/testgamecontroller.c @@ -109,11 +109,11 @@ loop(void *arg) while (SDL_PollEvent(&event)) { switch (event.type) { case SDL_CONTROLLERAXISMOTION: - SDL_Log("Controller axis %s changed to %d\n", SDL_GameControllerGetStringForAxis(event.caxis.axis), event.caxis.value); + SDL_Log("Controller axis %s changed to %d\n", SDL_GameControllerGetStringForAxis((SDL_GameControllerAxis)event.caxis.axis), event.caxis.value); break; case SDL_CONTROLLERBUTTONDOWN: case SDL_CONTROLLERBUTTONUP: - SDL_Log("Controller button %s %s\n", SDL_GameControllerGetStringForButton(event.cbutton.button), event.cbutton.state ? "pressed" : "released"); + SDL_Log("Controller button %s %s\n", SDL_GameControllerGetStringForButton((SDL_GameControllerButton)event.cbutton.button), event.cbutton.state ? "pressed" : "released"); break; case SDL_KEYDOWN: if (event.key.keysym.sym != SDLK_ESCAPE) { |