projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20030404-1-src
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index fc6140fc84a0c959d5eaaeb5966acdd1c3fa2d95..332dcca21ea8adcc1dacc6a92a2b4fd69976a7cd 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-126,7
+126,11
@@
void HandleOtherEvents(Event *event)
break;
case EVENT_UNMAPNOTIFY:
break;
case EVENT_UNMAPNOTIFY:
+#if 0
+ /* This causes the game to stop not only when iconified, but also
+ when on another virtual desktop, which might be not desired. */
SleepWhileUnmapped();
SleepWhileUnmapped();
+#endif
break;
case EVENT_FOCUSIN:
break;
case EVENT_FOCUSIN:
@@
-542,14
+546,14
@@
void HandleKey(Key key, int key_status)
TapeTogglePause(TAPE_TOGGLE_MANUAL);
}
TapeTogglePause(TAPE_TOGGLE_MANUAL);
}
-
+#if 0
#ifndef DEBUG
if (game_status == PLAYING && (tape.playing || tape.pausing))
return;
#endif
#ifndef DEBUG
if (game_status == PLAYING && (tape.playing || tape.pausing))
return;
#endif
-
+#endif
HandleGadgetsKeyInput(key);
HandleGadgetsKeyInput(key);
@@
-871,6
+875,10
@@
void HandleJoystick()
HandleHelpScreen(!newbutton);
break;
HandleHelpScreen(!newbutton);
break;
+ case LEVELED:
+ HandleLevelEditorIdle();
+ break;
+
case PLAYING:
if (tape.playing || keyboard)
newbutton = ((joy & JOY_BUTTON) != 0);
case PLAYING:
if (tape.playing || keyboard)
newbutton = ((joy & JOY_BUTTON) != 0);