getTouch

getTouch

Method of Antilatency.Bracer.ICotask
Get actual touch value. Window for calculation based on values from device properties: "touch/WindowN". Where N - index of channel.
float getTouch(​uint channel);

Parameters

uint channel
Index of channel in range 0 .. (getTouchChannelsCount() - 1).

Return value

float
Touch value after processing in range 0 .. 1. Value 0 - no touch, value 1 - max touch. If native value is outside of windows, it will be clamped to range 0 .. 1.