2023-02-01 13:17:01 +00:00
|
|
|
#pragma once
|
2013-11-11 11:52:04 +00:00
|
|
|
|
|
|
|
namespace TiltEventProcessor {
|
|
|
|
|
2023-02-01 13:17:01 +00:00
|
|
|
// generates a tilt in the correct coordinate system based on
|
2023-02-01 22:47:42 +00:00
|
|
|
// calibration. x, y, z is the current accelerometer reading (with no conversion).
|
2023-02-16 09:33:47 +00:00
|
|
|
void ProcessTilt(bool landscape, const float calibrationAngle, float x, float y, float z, bool invertX, bool invertY, float xSensitivity, float ySensitivity);
|
2023-02-01 13:17:01 +00:00
|
|
|
void ResetTiltEvents();
|
2013-11-11 11:52:04 +00:00
|
|
|
|
2023-02-01 13:58:16 +00:00
|
|
|
// Lets you preview the amount of tilt in TiltAnalogSettingsScreen.
|
|
|
|
extern float rawTiltAnalogX;
|
|
|
|
extern float rawTiltAnalogY;
|
|
|
|
|
2023-02-01 13:17:01 +00:00
|
|
|
} // namespace
|