File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,13 @@ void fossil_io_mouse_poll_events(void) {
234
234
}
235
235
}
236
236
237
+ void fossil_io_mouse_clear_bindings (void ) {
238
+ mouse_manager .count = 0 ;
239
+ for (size_t i = 0 ; i < MAX_MOUSEBINDS ; ++ i ) {
240
+ mouse_manager .bindings [i ].callback = NULL ;
241
+ }
242
+ }
243
+
237
244
void fossil_io_mouse_init (void ) {
238
245
memset (& mouse_manager , 0 , sizeof (mouse_manager ));
239
246
printf ("[mouse] Initialized: bindings cleared\n" );
@@ -299,6 +306,13 @@ void fossil_io_touch_poll_events(void) {
299
306
}
300
307
}
301
308
309
+ void fossil_io_touch_clear_bindings (void ) {
310
+ touch_manager .count = 0 ;
311
+ for (size_t i = 0 ; i < MAX_TOUCHBINDS ; ++ i ) {
312
+ touch_manager .bindings [i ].callback = NULL ;
313
+ }
314
+ }
315
+
302
316
void fossil_io_touch_init (void ) {
303
317
memset (& touch_manager , 0 , sizeof (touch_manager ));
304
318
printf ("[touch] Initialized: bindings cleared\n" );
You can’t perform that action at this time.
0 commit comments