Gyro: Revisions & Rollgoal Mirror Mode

This commit is contained in:
Irastris
2026-04-16 15:31:58 -04:00
parent 88bdea1fd3
commit c7d9a8733f
6 changed files with 74 additions and 68 deletions
+2 -2
View File
@@ -3,11 +3,11 @@
namespace dusk::gyro {
void read(float dt);
void consumeAimDeltas(float& out_yaw_rad, float& out_pitch_rad);
void getAimDeltas(float& out_yaw, float& out_pitch);
bool queryGyroAimItemContext();
void rollgoalTick(bool play_active, s16 camera_yaw);
void rollgoalTableOffset(s16& out_add_x, s16& out_add_z);
void rollgoalTableOffset(s16& out_ax, s16& out_az);
extern bool s_sensor_keep_alive;
bool get_sensor_keep_alive();
+7 -5
View File
@@ -82,11 +82,13 @@ struct UserSettings {
// Input
ConfigVar<bool> enableGyroAim;
ConfigVar<bool> enableGyroRollgoal;
ConfigVar<float> gyroAimSensitivityX;
ConfigVar<float> gyroAimSensitivityY;
ConfigVar<float> gyroRollgoalSensitivity;
ConfigVar<bool> gyroAimInvertPitch;
ConfigVar<bool> gyroAimInvertYaw;
ConfigVar<float> gyroSensitivityX;
ConfigVar<float> gyroSensitivityY;
ConfigVar<float> gyroSensitivityRollgoal;
ConfigVar<float> gyroSmoothing;
ConfigVar<float> gyroDeadband;
ConfigVar<bool> gyroInvertPitch;
ConfigVar<bool> gyroInvertYaw;
// Cheats
ConfigVar<bool> enableFastIronBoots;