mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
testautomation keyboard: use space
instead of a
(cherry picked from commit 1ed1bc1d5d
)
This commit is contained in:
@@ -127,9 +127,9 @@ int keyboard_getKeyFromScancode(void *arg)
|
|||||||
SDL_Keycode result;
|
SDL_Keycode result;
|
||||||
|
|
||||||
/* Case where input is valid */
|
/* Case where input is valid */
|
||||||
result = SDL_GetKeyFromScancode(SDL_SCANCODE_A);
|
result = SDL_GetKeyFromScancode(SDL_SCANCODE_SPACE);
|
||||||
SDLTest_AssertPass("Call to SDL_GetKeyFromScancode(valid)");
|
SDLTest_AssertPass("Call to SDL_GetKeyFromScancode(valid)");
|
||||||
SDLTest_AssertCheck(result == SDLK_a, "Verify result from call, expected: %i, got: %" SDL_PRIs32, SDLK_a, result);
|
SDLTest_AssertCheck(result == SDLK_SPACE, "Verify result from call, expected: %i, got: %" SDL_PRIs32, SDLK_SPACE, result);
|
||||||
|
|
||||||
/* Case where input is zero */
|
/* Case where input is zero */
|
||||||
result = SDL_GetKeyFromScancode(0);
|
result = SDL_GetKeyFromScancode(0);
|
||||||
|
Reference in New Issue
Block a user