]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.h
E4M9 was added to the Transfusion map list
[xonotic/darkplaces.git] / keys.h
diff --git a/keys.h b/keys.h
index 3fbefd080570b229001e0746cac25110fc0a77c2..fcd39ce41ede714d8bcaf322da30d95b9364d7b9 100644 (file)
--- a/keys.h
+++ b/keys.h
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 See the GNU General Public License for more details.
 
@@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
 
+#ifndef KEYS_H
+#define KEYS_H
+
 //
 // these are the key numbers that should be passed to Key_Event
 //
@@ -56,6 +59,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define        K_HOME                  151
 #define        K_END                   152
 
+#define K_KP_HOME              160
+#define K_KP_UPARROW   161
+#define K_KP_PGUP              162
+#define        K_KP_LEFTARROW  163
+#define K_KP_5                 164
+#define K_KP_RIGHTARROW        165
+#define K_KP_END               166
+#define K_KP_DOWNARROW 167
+#define K_KP_PGDN              168
+#define        K_KP_ENTER              169
+#define K_KP_INS               170
+#define        K_KP_DEL                171
+#define K_KP_SLASH             172
+#define K_KP_MINUS             173
+#define K_KP_PLUS              174
+
 #define K_PAUSE                        255
 
 //
@@ -110,24 +129,31 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define        K_AUX31                 237
 #define        K_AUX32                 238
 
-// JACK: Intellimouse(c) Mouse Wheel Support
-
-#define K_MWHEELUP             239
-#define K_MWHEELDOWN   240
+#define K_MWHEELDOWN   239
+#define K_MWHEELUP             240
 
+extern char *keybindings[256];
+extern int key_repeats[256];
 
+extern char chat_buffer[256];
+extern int chat_bufferlen;
+extern qboolean chat_team;
 
-typedef enum {key_game, key_console, key_message, key_menu} keydest_t;
+typedef enum {key_game, key_message, key_menu} keydest_t;
 
-extern keydest_t       key_dest;
-extern char *keybindings[256];
-extern int             key_repeats[256];
-extern int             key_count;                      // incremented every key event
-extern int             key_lastpress;
+// key_consoleactive bits
+// user wants console (halfscreen)
+#define KEY_CONSOLEACTIVE_USER 1
+// console forced because there's nothing else active (fullscreen)
+#define KEY_CONSOLEACTIVE_FORCED 2
+extern int key_consoleactive;
+extern keydest_t key_dest;
 
 void Key_Event (int key, qboolean down);
 void Key_Init (void);
-void Key_WriteBindings (FILE *f);
+void Key_WriteBindings (QFile *f);
 void Key_SetBinding (int keynum, char *binding);
 void Key_ClearStates (void);
 
+#endif
+