File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 29
29
#endif
30
30
31
31
#define MAX_KEYBINDS 256
32
+ #define MAX_TOUCHBINDS 256
33
+ #define MAX_MOUSEBINDS 256
32
34
33
- static fossil_io_touch_manager_t touch_manager ;
34
- static fossil_io_mouse_manager_t mouse_manager ;
35
+ typedef struct {
36
+ fossil_io_mouse_event_t event ;
37
+ fossil_io_mouse_callback_t callback ;
38
+ } fossil_io_mouse_binding_t ;
39
+
40
+ typedef struct {
41
+ fossil_io_mouse_binding_t bindings [MAX_MOUSEBINDS ];
42
+ size_t count ;
43
+ } fossil_io_mouse_manager_t ;
44
+
45
+ typedef struct {
46
+ fossil_io_touch_event_t event ;
47
+ fossil_io_touch_callback_t callback ;
48
+ } fossil_io_touch_binding_t ;
49
+
50
+ typedef struct {
51
+ fossil_io_touch_binding_t bindings [MAX_TOUCHBINDS ];
52
+ size_t count ;
53
+ } fossil_io_touch_manager_t ;
35
54
36
55
typedef struct {
37
56
fossil_io_keyboard_event_t event ;
@@ -44,6 +63,9 @@ typedef struct {
44
63
} fossil_io_keyboard_manager_t ;
45
64
46
65
static fossil_io_keyboard_manager_t keyboard_manager = { .count = 0 };
66
+ static fossil_io_touch_manager_t touch_manager ;
67
+ static fossil_io_mouse_manager_t mouse_manager ;
68
+
47
69
48
70
#if defined(_WIN32 ) || defined(_WIN64 )
49
71
You can’t perform that action at this time.
0 commit comments