Removed test binding for space key

This pops up at the most inconvenient times, and space is handy for other functions in various test programs.
This commit is contained in:
Sam Lantinga 2023-07-11 08:18:36 -07:00
parent 41882a1acb
commit 4f122c6e39
1 changed files with 0 additions and 14 deletions

View File

@ -2013,7 +2013,6 @@ static void FullscreenTo(SDLTest_CommonState *state, int index, int windowId)
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
{
int i;
static SDL_MouseMotionEvent lastEvent;
if (state->verbose & VERBOSE_EVENT) {
if (((event->type != SDL_EVENT_MOUSE_MOTION) &&
@ -2390,16 +2389,6 @@ void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done
case SDLK_ESCAPE:
*done = 1;
break;
case SDLK_SPACE:
{
char message[256];
SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
(void)SDL_snprintf(message, sizeof(message), "(%g, %g), rel (%g, %g)\n",
lastEvent.x, lastEvent.y, lastEvent.xrel, lastEvent.yrel);
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, "Last mouse position", message, window);
break;
}
default:
break;
}
@ -2408,9 +2397,6 @@ void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done
case SDL_EVENT_QUIT:
*done = 1;
break;
case SDL_EVENT_MOUSE_MOTION:
lastEvent = event->motion;
break;
case SDL_EVENT_DROP_FILE:
case SDL_EVENT_DROP_TEXT: