mirror of
https://github.com/mpv-player/mpv
synced 2024-09-12 23:45:53 +02:00
986e519fc9
Use the same mp_input_add_key_fd for all uses and add a context argument to its callback that was before only in the event fd callbacks. Instead of checking in input.c whether keys were inserted to the keypress FIFO during the callback do the check in the callback before returning and set return value accordingly.
8 lines
157 B
C
8 lines
157 B
C
#ifndef MPLAYER_MP_FIFO_H
|
|
#define MPLAYER_MP_FIFO_H
|
|
|
|
int mplayer_get_key(void *ctx, int fd);
|
|
void mplayer_put_key(int code);
|
|
|
|
#endif /* MPLAYER_MP_FIFO_H */
|