X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=keys.h;h=1cf6f2cb9b20fc6c4b05aff1e4f67e9435b418a6;hb=755bd4fe5e014d75df2298e49ed3de637dea4404;hp=a02acf2ff993061f5f9230cd092d9d5464d8ddc8;hpb=5737591d891d69836735abb645a1b173baaabe96;p=xonotic%2Fdarkplaces.git diff --git a/keys.h b/keys.h index a02acf2f..1cf6f2cb 100644 --- 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,17 +367,18 @@ 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; +void Key_ClearEditLine(int edit_line); 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);