First commit

This commit is contained in:
nastys
2019-07-06 22:51:56 +02:00
commit 321ecdf8b7
162 changed files with 19606 additions and 0 deletions
@@ -0,0 +1,19 @@
#include "TouchSliderState.h"
namespace TLAC::Components
{
void TouchSliderState::SetSensor(int index, int value)
{
if (index < 0 || index >= SLIDER_SENSORS)
return;
SensorPressureLevels[index] = value;
SensorTouched[index].IsTouched = value > 0;
}
void TouchSliderState::ResetSensors()
{
for (int i = 0; i < SLIDER_SENSORS; i++)
SetSensor(i, NO_PRESSURE);
}
}