Add Share+PS combo for clickpad button emulation on PS4/5 controllers

This commit is contained in:
Cameron Gutman 2023-10-14 01:46:50 -05:00
commit 53c2c612c9
2 changed files with 26 additions and 1 deletions

View file

@ -19,6 +19,9 @@ struct GamepadState {
SDL_TimerID mouseEmulationTimer;
uint32_t lastStartDownTime;
bool clickpadButtonEmulationEnabled;
bool emulatedClickpadButtonDown;
#if SDL_VERSION_ATLEAST(2, 0, 14)
uint8_t gyroReportPeriodMs;
float lastGyroEventData[SDL_arraysize(SDL_ControllerSensorEvent::data)];