input: add gyroscope and motion sensor support (#634)

input: add controller motion sensor support

Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
Komary
2026-09-17 11:28:12 +03:00
committed by GitHub
parent 6c03b4aaa5
commit ce629e0391
3 changed files with 129 additions and 2 deletions
+3
View File
@@ -46,6 +46,8 @@ enum class Axis {
AxisMax
};
enum class Sensor { Accel, Gyro };
struct PadControllerInformation;
struct PadData;
struct PadVibrationParam;
@@ -69,6 +71,7 @@ void SetButton(int id, uint32_t button, bool down);
void SetAxis(int id, Axis axis, int value);
void SetRightStick(int id, int x, int y);
void SetTouchPad(int id, int finger, bool down, float x, float y);
void SetSensor(int id, Sensor sensor, const float* data, uint64_t time_us);
void ResetInputState();
int KYTY_SYSV_ABI PadInit();