Function gvr_sys::gvr_controller_state_get_touch_pos [] [src]

pub unsafe extern "C" fn gvr_controller_state_get_touch_pos(
    state: *const gvr_controller_state
) -> gvr_vec2f

If the user is touching the touchpad, this returns the touch position in normalized coordinates, where (0,0) is the top-left of the touchpad and (1,1) is the bottom right. If the user is not touching the touchpad, then this is the position of the last touch.

@param state The controller state to get the touchpad touch position from. @return The touchpad touch position in normalized coordinates iff the user is touching the toucpad. The last touched coordinate otherwise.