TLAC: revert to old style slider emulation when not using ps4 slider input

This commit is contained in:
somewhatlurker
2020-08-14 02:20:56 +10:00
parent 6fcb916e3c
commit 3141c651b6
9 changed files with 71 additions and 26 deletions
@@ -8,6 +8,7 @@
#define NO_PRESSURE 0
#define FULL_PRESSURE 180
namespace TLAC::Components
{
struct TouchSliderSerialState
@@ -64,8 +65,17 @@ namespace TLAC::Components
uint8_t Padding[45];
} SensorTouched[SLIDER_SENSORS];
void SetSensor(int index, int value);
void ResetSensors();
// two different places to be set depending on operation mode now
// stick/button based emulation directly controls sections and raw slider emulation controls fake serial inputs
enum SliderSensorSetMode
{
SENSOR_SET_MODE_SECTIONS,
SENSOR_SET_MODE_RAW
};
void SetSensor(int index, int value, SliderSensorSetMode mode);
void ResetSensors(SliderSensorSetMode mode);
};
}