diff options
author | wm4 <wm4@nowhere> | 2014-07-27 21:53:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-27 21:53:29 +0200 |
commit | 4c533fbb16b99c4b28fbd968d81bb0b44e3084b5 (patch) | |
tree | ceefb95dadc18ee01c29bc6c556d07ad9a8bc22c /video/out/vo_caca.c | |
parent | 89391e7c949216d7edec461e9bb2cb6c787475c6 (diff) | |
download | mpv-4c533fbb16b99c4b28fbd968d81bb0b44e3084b5.tar.bz2 mpv-4c533fbb16b99c4b28fbd968d81bb0b44e3084b5.tar.xz |
vo: remove vo_mouse_movement() wrapper
So that VO backends don't have to access the VO just for that.
Diffstat (limited to 'video/out/vo_caca.c')
-rw-r--r-- | video/out/vo_caca.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/video/out/vo_caca.c b/video/out/vo_caca.c index 00b9e23123..bcef78534c 100644 --- a/video/out/vo_caca.c +++ b/video/out/vo_caca.c @@ -178,16 +178,14 @@ static void check_events(struct vo *vo) mp_input_put_key(vo->input_ctx, MP_KEY_CLOSE_WIN); break; case CACA_EVENT_MOUSE_MOTION: - vo_mouse_movement(vo, cev.data.mouse.x, cev.data.mouse.y); + mp_input_set_mouse_pos(vo->input_ctx, cev.data.mouse.x, cev.data.mouse.y); break; case CACA_EVENT_MOUSE_PRESS: - if (vo->opts->enable_mouse_movements) - mp_input_put_key(vo->input_ctx, + mp_input_put_key(vo->input_ctx, (MP_MOUSE_BTN0 + cev.data.mouse.button - 1) | MP_KEY_STATE_DOWN); break; case CACA_EVENT_MOUSE_RELEASE: - if (vo->opts->enable_mouse_movements) - mp_input_put_key(vo->input_ctx, + mp_input_put_key(vo->input_ctx, (MP_MOUSE_BTN0 + cev.data.mouse.button - 1) | MP_KEY_STATE_UP); break; case CACA_EVENT_KEY_PRESS: |