Go to the source code of this file.
◆ vsf_input_mouse_evt_move_set
#define vsf_input_mouse_evt_move_set |
( |
|
__evt, |
|
|
|
__x, |
|
|
|
__y |
|
) |
| |
Value: do { \
(__evt)->cur.valu32 = ((__x) | ((__y) << 16)); \
} while (0)
◆ vsf_input_mouse_evt_wheel_set
#define vsf_input_mouse_evt_wheel_set |
( |
|
__evt, |
|
|
|
__x, |
|
|
|
__y |
|
) |
| |
Value: do { \
(__evt)->cur.valu32 = ((__x) | ((__y) << 16)); \
} while (0)
◆ vsf_input_mouse_evt_button_set
#define vsf_input_mouse_evt_button_set |
( |
|
__evt, |
|
|
|
__button, |
|
|
|
__is_down, |
|
|
|
__x, |
|
|
|
__y |
|
) |
| |
Value: do { \
(__evt)->cur.valu32 = ((__x) | ((__y) << 16)); \
} while (0)
◆ vsf_input_mouse_evt_get
#define vsf_input_mouse_evt_get |
( |
|
__evt | ) |
((__evt)->id & 0xFF) |
◆ vsf_input_mouse_evt_button_get
#define vsf_input_mouse_evt_button_get |
( |
|
__evt | ) |
(int)(((__evt)->id >> 8) & 0x03) |
◆ vsf_input_mouse_evt_button_is_down
#define vsf_input_mouse_evt_button_is_down |
( |
|
__evt | ) |
(!!(((__evt)->id >> 12) & 1)) |
◆ vsf_input_mouse_evt_get_x
#define vsf_input_mouse_evt_get_x |
( |
|
__evt | ) |
((int16_t)(((__evt)->cur.valu32 >> 0) & 0xFFFF)) |
◆ vsf_input_mouse_evt_get_y
#define vsf_input_mouse_evt_get_y |
( |
|
__evt | ) |
((int16_t)(((__evt)->cur.valu32 >> 16) & 0xFFFF)) |
◆ vk_mouse_evt_t
◆ anonymous enum
Enumerator |
---|
VSF_INPUT_TYPE_MOUSE | |
◆ anonymous enum
Enumerator |
---|
VSF_INPUT_MOUSE_EVT_MOVE | |
VSF_INPUT_MOUSE_EVT_BUTTON | |
VSF_INPUT_MOUSE_EVT_WHEEL | |
◆ anonymous enum
Enumerator |
---|
VSF_INPUT_MOUSE_BUTTON_LEFT | |
VSF_INPUT_MOUSE_BUTTON_MIDDLE | |
VSF_INPUT_MOUSE_BUTTON_RIGHT | |