]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.h
host: Implement callback for host_framerate instead of checking it every frame
[xonotic/darkplaces.git] / keys.h
diff --git a/keys.h b/keys.h
index a02acf2ff993061f5f9230cd092d9d5464d8ddc8..6c10a6f12810d337a876bea01f634a378176c84d 100644 (file)
--- a/keys.h
+++ b/keys.h
@@ -214,6 +214,12 @@ typedef enum keynum_e
        K_X360_RIGHT_THUMB_LEFT,
        K_X360_RIGHT_THUMB_RIGHT,
 
+       // generic joystick emulation for menu
+       K_JOY_UP,
+       K_JOY_DOWN,
+       K_JOY_LEFT,
+       K_JOY_RIGHT,
+
        K_MIDINOTE0 = 896, // to this, the note number is added
        K_MIDINOTE1,
        K_MIDINOTE2,
@@ -361,19 +367,22 @@ extern    keydest_t       key_dest;
 extern int                     key_consoleactive;
 extern char            *keybindings[MAX_BINDMAPS][MAX_KEYS];
 
-extern void Key_ClearEditLine(int edit_line);
 extern int chat_mode; // 0 for say, 1 for say_team, -1 for command
 extern char chat_buffer[MAX_INPUTLINE];
-extern unsigned int chat_bufferlen;
+extern int     chat_bufferpos;
 
+int Key_ClearEditLine(qboolean is_console);
 void Key_WriteBindings(qfile_t *f);
 void Key_Init(void);
 void Key_Shutdown(void);
 void Key_Init_Cvars(void);
 void Key_Event(int key, int ascii, qboolean down);
-void Key_ClearStates (void);
+void Key_ReleaseAll (void);
+void Key_ReleaseAll_f(cmd_state_t *cmd);
 void Key_EventQueue_Block(void);
 void Key_EventQueue_Unblock(void);
+int Key_AddChar(int unicode, qboolean is_console);
+int Key_Parse_CommonKeys(cmd_state_t *cmd, qboolean is_console, int key, int unicode);
 
 qboolean Key_SetBinding (int keynum, int bindmap, const char *binding);
 const char *Key_GetBind (int key, int bindmap);