Made the maximum noise during accelerometer noise profiling a define, in terms of "G"

Also removed a // comment which was causing the build to error.
This commit is contained in:
Aubrey Hesselgren
2025-07-22 10:39:25 -07:00
committed by Sam Lantinga
parent 6bfc54508c
commit 8863e5ee67
2 changed files with 5 additions and 8 deletions

View File

@@ -145,7 +145,7 @@ extern void DestroyGamepadButton(GamepadButton *ctx);
/* This is used as the initial noise tolernace threshold. It's set very close to zero to avoid divide by zero while we're evaluating the noise profile. Each controller may have a very different noise profile.*/
#define ACCELEROMETER_NOISE_THRESHOLD 1e-6f
#define ACCELEROMETER_MAX_NOISE_G_SQ ( 0.125f * 0.125f )
/* Gyro Calibration Phases */
typedef enum
{