@@ -232,11 +232,14 @@ void fossil_io_mouse_poll_events(void) {
232
232
}
233
233
234
234
void fossil_io_mouse_init (void ) {
235
- printf ("[mouse] Initialized\n" );
235
+ memset (& mouse_manager , 0 , sizeof (mouse_manager ));
236
+ printf ("[mouse] Initialized: %zu bindings cleared\n" , mouse_manager .count );
236
237
}
237
238
238
239
void fossil_io_mouse_shutdown (void ) {
239
- printf ("[mouse] Shutdown\n" );
240
+ size_t released = mouse_manager .count ;
241
+ memset (& mouse_manager , 0 , sizeof (mouse_manager ));
242
+ printf ("[mouse] Shutdown: %zu bindings released\n" , released );
240
243
}
241
244
242
245
// TOUCH
@@ -295,9 +298,12 @@ void fossil_io_touch_poll_events(void) {
295
298
}
296
299
297
300
void fossil_io_touch_init (void ) {
298
- printf ("[touch] Initialized\n" );
301
+ memset (& touch_manager , 0 , sizeof (touch_manager ));
302
+ printf ("[touch] Initialized: %zu bindings cleared\n" , touch_manager .count );
299
303
}
300
304
301
305
void fossil_io_touch_shutdown (void ) {
302
- printf ("[touch] Shutdown\n" );
306
+ size_t released = touch_manager .count ;
307
+ memset (& touch_manager , 0 , sizeof (touch_manager ));
308
+ printf ("[touch] Shutdown: %zu bindings released\n" , released );
303
309
}
0 commit comments