102 return ( p_mouse->
i_pressed & (1 << i_button) ) != 0;
128 *pi_x = p_new->
i_x - p_old->
i_x;
129 *pi_y = p_new->
i_y - p_old->
i_y;
136 return p_old->
i_x != p_new->
i_x || p_old->
i_y != p_new->
i_y ||
142 return p_old->
i_x != p_new->
i_x || p_old->
i_y != p_new->
i_y;
153 const int i_mask = 1 << i_button;
160 const int i_mask = 1 << i_button;
Mouse state.
Definition vlc_mouse.h:46
bool b_double_click
Definition vlc_mouse.h:53
int i_pressed
Definition vlc_mouse.h:51
int i_x
Definition vlc_mouse.h:48
int i_y
Definition vlc_mouse.h:49
bool b_mouse_filter
Definition vlc_mouse.h:55
This file is a collection of common definitions and types.
static void vlc_mouse_SetReleased(vlc_mouse_t *p_mouse, int i_button)
Definition vlc_mouse.h:81
static bool vlc_mouse_IsWheelDownPressed(const vlc_mouse_t *p_mouse)
Definition vlc_mouse.h:121
static bool vlc_mouse_IsRightPressed(const vlc_mouse_t *p_mouse)
Definition vlc_mouse.h:113
static bool vlc_mouse_IsLeftPressed(const vlc_mouse_t *p_mouse)
Definition vlc_mouse.h:105
vlc_mouse_button
Mouse buttons.
Definition vlc_mouse.h:31
@ MOUSE_BUTTON_LEFT
Definition vlc_mouse.h:32
@ MOUSE_BUTTON_WHEEL_LEFT
Definition vlc_mouse.h:37
@ MOUSE_BUTTON_WHEEL_UP
Definition vlc_mouse.h:35
@ MOUSE_BUTTON_RIGHT
Definition vlc_mouse.h:34
@ MOUSE_BUTTON_WHEEL_DOWN
Definition vlc_mouse.h:36
@ MOUSE_BUTTON_WHEEL_RIGHT
Definition vlc_mouse.h:38
@ MOUSE_BUTTON_CENTER
Definition vlc_mouse.h:33
@ MOUSE_BUTTON_MAX
Definition vlc_mouse.h:39
static bool vlc_mouse_HasMouseFilter(const vlc_mouse_t *p_mouse)
Definition vlc_mouse.h:164
static void vlc_mouse_Init(vlc_mouse_t *p_mouse)
Definition vlc_mouse.h:66
static bool vlc_mouse_IsPressed(const vlc_mouse_t *p_mouse, int i_button)
Definition vlc_mouse.h:100
static bool vlc_mouse_IsCenterPressed(const vlc_mouse_t *p_mouse)
Definition vlc_mouse.h:109
static bool vlc_mouse_HasReleased(const vlc_mouse_t *p_old, const vlc_mouse_t *p_new, int i_button)
Definition vlc_mouse.h:157
static bool vlc_mouse_HasPressed(const vlc_mouse_t *p_old, const vlc_mouse_t *p_new, int i_button)
Definition vlc_mouse.h:150
static bool vlc_mouse_IsWheelUpPressed(const vlc_mouse_t *p_mouse)
Definition vlc_mouse.h:117
static void vlc_mouse_GetMotion(int *pi_x, int *pi_y, const vlc_mouse_t *p_old, const vlc_mouse_t *p_new)
Definition vlc_mouse.h:125
void(* vlc_mouse_event)(const vlc_mouse_t *mouse, void *user_data)
Mouse event callback.
Definition vlc_mouse.h:64
static bool vlc_mouse_HasButton(const vlc_mouse_t *p_old, const vlc_mouse_t *p_new)
Definition vlc_mouse.h:145
static void vlc_mouse_SetPressed(vlc_mouse_t *p_mouse, int i_button)
Definition vlc_mouse.h:76
static bool vlc_mouse_HasChanged(const vlc_mouse_t *p_old, const vlc_mouse_t *p_new)
Definition vlc_mouse.h:134
static void vlc_mouse_SetPosition(vlc_mouse_t *p_mouse, int i_x, int i_y)
Definition vlc_mouse.h:86
static void vlc_mouse_SetMouseFilter(vlc_mouse_t *p_mouse, bool mouse_filter)
Definition vlc_mouse.h:93
static bool vlc_mouse_HasMoved(const vlc_mouse_t *p_old, const vlc_mouse_t *p_new)
Definition vlc_mouse.h:140