pub unsafe extern "C" fn screen_touch_callback(
cb: touch_event_cb_fn_t,
event_type: last_touch_e_t,
) -> u32Expand description
Assigns a callback function to be called when a certain touch event happens.
This function uses the following values of errno when an error state is reached: EACCESS - Another resource is currently trying to access the screen mutex.
\param cb Function pointer to callback when event type happens \param event_type Touch event that will trigger the callback.
\return 1 if there were no errors, or PROS_ERR if an error occured while taking or returning the screen mutex.