Function mir_touch_event_axis_value

Function Documentation

float mir_touch_event_axis_value(MirTouchEvent const *event, size_t touch_index, MirTouchAxis axis)

Retrieve the axis value for a given axis on an indexed touch.

Parameters:
  • event – [in] The touch event

  • touch_index – [in] The touch index. Must be less than (touch_count - 1).

  • axis – [in] The axis to retreive a value from

Returns:

The value of the given axis