rnd-20040819-1-src
[rocksndiamonds.git] / src / libem / input.c
index 7c6437c98f9b6ae4e7b9841eb4435be1602eee1f..2aafb6650a78f2742b4bdb118f5ecd954a8f4a21 100644 (file)
@@ -1,3 +1,6 @@
+
+#if defined(TARGET_X11)
+
 /* 2000-08-13T15:29:40Z
  *
  * handle input from x11 and keyboard and joystick
@@ -118,7 +121,7 @@ int game_start(void)
        strcpy(player_name, "dave");
        player_level = 0;
 
-       input_pause = 1;
+       input_pause = 1    * 0;
 
        for(;;) {
 
@@ -259,6 +262,11 @@ void readjoy(void)
                ply1.joy_s = south;
                ply1.joy_w = west;
        }
+
+#if 0
+       printf("::: JOY == %d/%d/%d/%d/%d\n",
+              north, east, south, west, fire);
+#endif
 }
 
 /* handle events from x windows and block until the next frame
@@ -318,3 +326,5 @@ void input_eventloop(void)
        input_esc = 0;
        for(i = 0; i < 1; i++) if(keymatrix[escKeyCode[i] >> 3] & 1 << (escKeyCode[i] & 7)) input_esc = 1;
 }
+
+#endif