wlmaker
Loading...
Searching...
No Matches
src
toolkit
input.h
Go to the documentation of this file.
1
/* ========================================================================= */
20
#ifndef __WLMTK_INPUT_H__
21
#define __WLMTK_INPUT_H__
22
23
// BTN_LEFT, BTN_RIGHT, ...
24
#include <linux/input-event-codes.h>
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
// __cplusplus
29
31
typedef
struct
_wlmtk_button_event_t
wlmtk_button_event_t
;
32
34
typedef
enum
{
35
WLMTK_BUTTON_DOWN,
36
WLMTK_BUTTON_UP,
37
WLMTK_BUTTON_CLICK,
38
WLMTK_BUTTON_DOUBLE_CLICK,
39
}
wlmtk_button_event_type_t
;
40
42
struct
_wlmtk_button_event_t
{
44
uint32_t
button
;
46
wlmtk_button_event_type_t
type
;
48
uint32_t
time_msec
;
49
};
50
51
#ifdef __cplusplus
52
}
// extern "C"
53
#endif
// __cplusplus
54
55
#endif
/* __WLMTK_INPUT_H__ */
56
/* == End of input.h ======================================================= */
wlmtk_button_event_type_t
wlmtk_button_event_type_t
Definition
input.h:34
_wlmtk_button_event_t
Definition
input.h:42
_wlmtk_button_event_t::time_msec
uint32_t time_msec
Definition
input.h:48
_wlmtk_button_event_t::button
uint32_t button
Definition
input.h:44
_wlmtk_button_event_t::type
wlmtk_button_event_type_t type
Definition
input.h:46
Generated by
1.12.0