Skip to content

Commit 09e2099

Browse files
authored
Put constructor variables in correct order - for real
1 parent 8dfc4be commit 09e2099

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

BleGamepadConfiguration.h

+8-7
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ class BleGamepadConfiguration
210210
bool _whichSpecialButtons[POSSIBLESPECIALBUTTONS];
211211
bool _whichAxes[POSSIBLEAXES];
212212
bool _whichSimulationControls[POSSIBLESIMULATIONCONTROLS];
213+
bool _includeGyroscope;
214+
bool _includeAccelerometer;
213215
uint16_t _vid;
214216
uint16_t _pid;
215217
uint16_t _guidVersion;
@@ -227,8 +229,7 @@ class BleGamepadConfiguration
227229
bool _enableOutputReport;
228230
uint16_t _outputReportLength;
229231
int8_t _powerLevel;
230-
bool _includeGyroscope;
231-
bool _includeAccelerometer;
232+
232233

233234
public:
234235
BleGamepadConfiguration();
@@ -267,6 +268,8 @@ class BleGamepadConfiguration
267268
bool getIncludeBrake();
268269
bool getIncludeSteering();
269270
const bool *getWhichSimulationControls() const;
271+
bool getIncludeAccelerometer();
272+
bool getIncludeGyroscope();
270273
uint16_t getVid();
271274
uint16_t getPid();
272275
uint16_t getGuidVersion();
@@ -284,8 +287,6 @@ class BleGamepadConfiguration
284287
bool getEnableOutputReport();
285288
uint16_t getOutputReportLength();
286289
int8_t getTXPowerLevel();
287-
bool getIncludeAccelerometer();
288-
bool getIncludeGyroscope();
289290

290291
void setControllerType(uint8_t controllerType);
291292
void setAutoReport(bool value);
@@ -316,6 +317,8 @@ class BleGamepadConfiguration
316317
void setIncludeBrake(bool value);
317318
void setIncludeSteering(bool value);
318319
void setWhichSimulationControls(bool rudder, bool throttle, bool accelerator, bool brake, bool steering);
320+
void setIncludeGyroscope(bool value);
321+
void setIncludeAccelerometer(bool value);
319322
void setVid(uint16_t value);
320323
void setPid(uint16_t value);
321324
void setGuidVersion(uint16_t value);
@@ -332,9 +335,7 @@ class BleGamepadConfiguration
332335
void setHardwareRevision(char *value);
333336
void setEnableOutputReport(bool value);
334337
void setOutputReportLength(uint16_t value);
335-
void setTXPowerLevel(int8_t value);
336-
void setIncludeGyroscope(bool value);
337-
void setIncludeAccelerometer(bool value);
338+
void setTXPowerLevel(int8_t value);
338339
};
339340

340341
#endif

0 commit comments

Comments
 (0)