mirror of https://github.com/encounter/SDL.git
Added a define VERBOSE_MOTION_EVENTS to show mouse and finger motion events
This commit is contained in:
parent
006a5a9e03
commit
0e198a8799
|
@ -1464,10 +1464,12 @@ default: return "???";
|
||||||
static void
|
static void
|
||||||
SDLTest_PrintEvent(SDL_Event * event)
|
SDLTest_PrintEvent(SDL_Event * event)
|
||||||
{
|
{
|
||||||
|
#ifndef VERBOSE_MOTION_EVENTS
|
||||||
if ((event->type == SDL_MOUSEMOTION) || (event->type == SDL_FINGERMOTION)) {
|
if ((event->type == SDL_MOUSEMOTION) || (event->type == SDL_FINGERMOTION)) {
|
||||||
/* Mouse and finger motion are really spammy */
|
/* Mouse and finger motion are really spammy */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (event->type) {
|
switch (event->type) {
|
||||||
case SDL_DISPLAYEVENT:
|
case SDL_DISPLAYEVENT:
|
||||||
|
|
Loading…
Reference in New Issue