From 1bf9249b8c40d47e0089a1e0a140a4d99404a69e Mon Sep 17 00:00:00 2001 From: albeu Date: Mon, 11 Feb 2002 11:42:08 +0000 Subject: Added key autorepeat support. Options to enable/disable joystick and lirc and set autorepeat delay and rate. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4658 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'input/input.h') diff --git a/input/input.h b/input/input.h index 6806fb9400..41da9451aa 100644 --- a/input/input.h +++ b/input/input.h @@ -32,8 +32,9 @@ #define MP_INPUT_DEAD -2 #define MP_INPUT_NOTHING -3 -#define MP_KEY_DOWN (1<<30) +#define MP_KEY_DOWN (1<<29) // Key up is the default +#define MP_NO_REPEAT_KEY (1<<28) #ifndef MP_MAX_KEY_DOWN #define MP_MAX_KEY_DOWN 32 @@ -90,6 +91,9 @@ mp_input_get_cmd(int time, int paused); void mp_cmd_free(mp_cmd_t* cmd); +mp_cmd_t* +mp_cmd_clone(mp_cmd_t* cmd); + void mp_input_init(void); -- cgit v1.2.3