buttonscroll working again.

This commit is contained in:
Pere Pujal i Carabantes 2015-02-05 23:25:40 +01:00
parent ff4d9d8566
commit 4d132111b2

View file

@ -2009,8 +2009,6 @@ int file_exists(char * path);
#define USEREVENT_TEXT_UPDATE 1
#define USEREVENT_PLAYDESCSOUND 2
#define TP_SDL_MOUSEBUTTONSCROLL (SDL_USEREVENT + 1)
static int bypass_splash_wait;
/* Wait for a keypress or mouse click.
@ -2198,6 +2196,8 @@ static void mainloop(void)
int stamp_xored = 0;
unsigned int i = 0;
Uint32 TP_SDL_MOUSEBUTTONSCROLL = SDL_RegisterEvents(1);
SDL_TimerID scrolltimer = NULL;
SDL_Event event;
SDLKey key;