projectm_touch

Function projectm_touch 

Source
pub unsafe extern "C" fn projectm_touch(
    instance: projectm_handle,
    x: f32,
    y: f32,
    pressure: c_int,
    touch_type: projectm_touch_type,
)
Expand description

@brief Starts a touch event or moves an existing waveform.

This will add or move waveforms in addition to the preset waveforms. If there is an existing waveform at the given coordinates, it will be centered on the new coordinates. If there is no waveform, a new one will be added.

@param instance The projectM instance handle. @param x The x coordinate of the touch event. @param y The y coordinate of the touch event. @param pressure The amount of pressure applied in a range from 0.0 to 1.0. @param touch_type The waveform type that will be rendered on touch.