mirror of https://github.com/mpv-player/mpv
input: add function for setting repeat info
Let us set a different rate and delay. Needed for the following commit where we set rate and delay reported by weston. But only if the option native-keyrepeat is set.
This commit is contained in:
parent
95bb0bb671
commit
be516022b6
|
@ -1508,3 +1508,9 @@ void mp_input_src_feed_cmd_text(struct mp_input_src *src, char *buf, size_t len)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void mp_input_set_repeat_info(struct input_ctx *ictx, int rate, int delay)
|
||||||
|
{
|
||||||
|
ictx->ar_rate = rate;
|
||||||
|
ictx->ar_delay = delay;
|
||||||
|
}
|
||||||
|
|
|
@ -249,4 +249,6 @@ void mp_input_pipe_add(struct input_ctx *ictx, const char *filename);
|
||||||
void mp_input_joystick_add(struct input_ctx *ictx, char *dev);
|
void mp_input_joystick_add(struct input_ctx *ictx, char *dev);
|
||||||
void mp_input_lirc_add(struct input_ctx *ictx, char *lirc_configfile);
|
void mp_input_lirc_add(struct input_ctx *ictx, char *lirc_configfile);
|
||||||
|
|
||||||
|
void mp_input_set_repeat_info(struct input_ctx *ictx, int rate, int delay);
|
||||||
|
|
||||||
#endif /* MPLAYER_INPUT_H */
|
#endif /* MPLAYER_INPUT_H */
|
||||||
|
|
Loading…
Reference in New Issue