#include "misc.h"
#include "tape.h"
#include "joystick.h"
+#include "buttons.h"
#include "network.h"
/* values for key_status */
old_mx = mx;
old_my = my;
+ HandleGadgets(mx,my, button);
HandleVideoButtons(mx,my, button);
HandleSoundButtons(mx,my, button);
HandleGameButtons(mx,my, button);
/* allow quick escape to the main menu with the Escape key */
if (key == XK_Escape && game_status != MAINMENU)
{
- CloseDoor(DOOR_CLOSE_1 | DOOR_NO_DELAY);
+ if (game_status == LEVELED)
+ {
+ /* draw smaller door */
+ XCopyArea(display, pix[PIX_DOOR], drawto, gc,
+ DOOR_GFX_PAGEX7, 64,
+ 108, 64,
+ EX - 4, EY - 12);
+ redraw_mask |= REDRAW_ALL;
+ }
+
+ CloseDoor(DOOR_CLOSE_1 | DOOR_OPEN_2 | DOOR_NO_DELAY);
game_status = MAINMENU;
DrawMainMenu();
return;
{
byte joy_action = 0;
+ /*
if (!setup.input[i].use_joystick)
continue;
+ */
joy_action = Joystick(i);
result |= joy_action;
+
+ if (!setup.input[i].use_joystick)
+ continue;
+
+
stored_player[i].action = joy_action;
}
case SETUP:
case SETUPINPUT:
{
- static long joystickmove_delay = 0;
+ static unsigned long joystickmove_delay = 0;
if (joystick && !button && !DelayReached(&joystickmove_delay, 150))
newbutton = dx = dy = 0;