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 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: