delay problems with lots of mouse motion events when mouse
button not pressed */
-int EventFilter(const Event *event)
+int FilterMouseMotionEvents(const Event *event)
{
if (event->type != EVENT_MOTIONNOTIFY)
return 1;
NextEvent(&event);
- if (EventFilter(&event))
+ if (FilterMouseMotionEvents(&event))
{
switch(event.type)
{
void HandleExposeEvent(ExposeEvent *event)
{
-#ifndef USE_SDL_LIBRARY
+#ifndef TARGET_SDL
int x = event->x, y = event->y;
int width = event->width, height = event->height;
void HandleClientMessageEvent(ClientMessageEvent *event)
{
-#ifdef USE_SDL_LIBRARY
+#ifdef TARGET_SDL
CloseAllAndExit(0); /* the only possible message here is SDL_QUIT */
#else
#ifndef MSDOS
void HandleKey(Key key, int key_status)
{
int joy = 0;
+ boolean anyTextGadgetActiveOrJustFinished = anyTextGadgetActive();
static struct SetupKeyboardInfo custom_key;
static struct
{
break;
case LEVELED:
- HandleLevelEditorKeyInput(key);
+ if (!anyTextGadgetActiveOrJustFinished)
+ HandleLevelEditorKeyInput(key);
break;
case PLAYING: