| Summary: | Patch for Switch Pro Controller Gyro and Accel support | ||
|---|---|---|---|
| Product: | SDL | Reporter: | jibb |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | 2.0.15 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
| Attachments: |
Patch for Gyro and Accel sensors on Switch Pro Controllers
Patch for Gyro and Accel sensors on Switch Pro Controllers - v2 |
||
Created attachment 4657 [details]
Patch for Gyro and Accel sensors on Switch Pro Controllers - v2
Patch with irrelevant VS project file changes removed.
(In reply to Ozkan Sezer from comment #1) > Created attachment 4657 [details] > Patch for Gyro and Accel sensors on Switch Pro Controllers - v2 > > Patch with irrelevant VS project file changes removed. Sorry about that. My first time using mercurial, I didn't see that other files were being committed Patch added, thanks! https://hg.libsdl.org/SDL/rev/a121e8b405e0 |
Created attachment 4656 [details] Patch for Gyro and Accel sensors on Switch Pro Controllers I've attached a patch that adds support for the Switch Pro Controller's gyro and accelerometer via the Sensor functions that are used by PlayStation controllers. Note that axes have been changed to behave the same as the PlayStation controllers -- They're the only controllers already supported, so I figure they've determined our "de facto" universal sensor coordinate system so that all supported controllers behave the same. I've tested this with my Switch Pro Controller, wired and wireless, and compared with results from my DualShock 4 and DualSense.