Skip to content

Commit

Permalink
Put constructor variables in correct order - for real
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmingDev authored Feb 2, 2025
1 parent 8dfc4be commit 09e2099
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions BleGamepadConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ class BleGamepadConfiguration
bool _whichSpecialButtons[POSSIBLESPECIALBUTTONS];
bool _whichAxes[POSSIBLEAXES];
bool _whichSimulationControls[POSSIBLESIMULATIONCONTROLS];
bool _includeGyroscope;
bool _includeAccelerometer;
uint16_t _vid;
uint16_t _pid;
uint16_t _guidVersion;
Expand All @@ -227,8 +229,7 @@ class BleGamepadConfiguration
bool _enableOutputReport;
uint16_t _outputReportLength;
int8_t _powerLevel;
bool _includeGyroscope;
bool _includeAccelerometer;


public:
BleGamepadConfiguration();
Expand Down Expand Up @@ -267,6 +268,8 @@ class BleGamepadConfiguration
bool getIncludeBrake();
bool getIncludeSteering();
const bool *getWhichSimulationControls() const;
bool getIncludeAccelerometer();
bool getIncludeGyroscope();
uint16_t getVid();
uint16_t getPid();
uint16_t getGuidVersion();
Expand All @@ -284,8 +287,6 @@ class BleGamepadConfiguration
bool getEnableOutputReport();
uint16_t getOutputReportLength();
int8_t getTXPowerLevel();
bool getIncludeAccelerometer();
bool getIncludeGyroscope();

void setControllerType(uint8_t controllerType);
void setAutoReport(bool value);
Expand Down Expand Up @@ -316,6 +317,8 @@ class BleGamepadConfiguration
void setIncludeBrake(bool value);
void setIncludeSteering(bool value);
void setWhichSimulationControls(bool rudder, bool throttle, bool accelerator, bool brake, bool steering);
void setIncludeGyroscope(bool value);
void setIncludeAccelerometer(bool value);
void setVid(uint16_t value);
void setPid(uint16_t value);
void setGuidVersion(uint16_t value);
Expand All @@ -332,9 +335,7 @@ class BleGamepadConfiguration
void setHardwareRevision(char *value);
void setEnableOutputReport(bool value);
void setOutputReportLength(uint16_t value);
void setTXPowerLevel(int8_t value);
void setIncludeGyroscope(bool value);
void setIncludeAccelerometer(bool value);
void setTXPowerLevel(int8_t value);
};

#endif

0 comments on commit 09e2099

Please sign in to comment.