pub type scs_input_event_callback_t = Option<unsafe extern "C" fn(event_info: *mut scs_input_event_t, flags: scs_u32_t, context: scs_context_t) -> scs_result_t>;
Expand description

@brief Type of function called to retrieve next event from the input device

This function is called on the main thread and must be quick. In each frame where the device is active, this function will be called repeatedly until it returns SCS_RESULT_not_found.

@param[out] event_info Store the event info here. Ignored if the function returns anything other than SCS_RESULT_ok. @param flags Combination of relevant SCS_INPUT_EVENT_CALLBACK_FLAG_* flags. @param context Context information passed during device registration. @return SCS_RESULT_ok when event was retrieved, SCS_RESULT_not_found when there was no event. Any other value will disconnect the device and prevent future related callbacks.