summaryrefslogtreecommitdiffstats
path: root/core/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-16 23:17:46 +0200
committerwm4 <wm4@nowhere>2013-05-26 16:44:19 +0200
commit3c8f8b7714331746233e288206b247366257cb99 (patch)
tree2a42c1d9c60bf24e5a680ec7e6d599ff33e60232 /core/mp_core.h
parent8df780cb50ec4bb615ac25987de52bb3b4126de9 (diff)
downloadmpv-3c8f8b7714331746233e288206b247366257cb99.tar.bz2
mpv-3c8f8b7714331746233e288206b247366257cb99.tar.xz
core: do mouse cursor hiding business in frontend
Do this so that not every VO backend has to setup a timer for cursor hiding and interpret the --cursor-autohide option.
Diffstat (limited to 'core/mp_core.h')
-rw-r--r--core/mp_core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/mp_core.h b/core/mp_core.h
index ce576273b4..6f784b4b7c 100644
--- a/core/mp_core.h
+++ b/core/mp_core.h
@@ -235,6 +235,13 @@ typedef struct MPContext {
float audio_delay;
unsigned int last_heartbeat;
+
+ unsigned int mouse_timer;
+ unsigned int mouse_last_time;
+ int mouse_waiting_hide;
+
+ unsigned int next_wakup_time;
+
// used to prevent hanging in some error cases
unsigned int start_timestamp;