extern "C" fn touch_event_callback(_event: *mut os_event) {
        unsafe {
            read_touchdata(&mut TOUCH_DATA).expect("touchdata fail");
            for i in 0..TOUCH_DATA.count as usize {
                let TouchInfo { x, y, action, .. } = TOUCH_DATA.touches[i];
                if x == 0 && y == 0 { continue ; }
                if action != 0 && action != 2 { continue ; }
                super::handle_touch(x, y);
            }
        }
    }
/// Callback for the touch event that is triggered when a touch is detected
Callback for the touch event that is triggered when a touch is detected
Callback for the touch event that is triggered when a touch is detected
extern "C" fn touch_event_callback(_event: *mut os_event) {
        unsafe {
            read_touchdata(&mut TOUCH_DATA).expect("touchdata fail");
            for i in 0..TOUCH_DATA.count as usize {
                let TouchInfo { x, y, action, .. } = TOUCH_DATA.touches[i];
                if x == 0 && y == 0 { continue ; }
                if action != 0 && action != 2 { continue ; }
                super::handle_touch(x, y);
            }
        }
    }
extern " " fn touch_event_callback ( _event : * mut os_event ) { unsafe { read_touchdata ( & mut TOUCH_DATA ) . expect ( " " ) ; for i in 0 .. TOUCH_DATA . count as usize { let TouchInfo { x , y , action , .. } = TOUCH_DATA . touches [ i ] ; if x == 0 && y == 0 { continue ; } if action != 0 && action != 2 { continue ; } super :: handle_touch ( x , y ) ; } } }
Callback for the touch event that is triggered when a touch is detected
Callback for the touch event that is triggered when a touch is detected
_event
*mut os_event
_event
*mut os_event