Pass gamepad to all objects
This commit is contained in:
@@ -51,7 +51,7 @@ class DriveManager {
|
||||
*
|
||||
* @param moveControl
|
||||
*/
|
||||
DriveManager(MoveControl *moveControl, bool wifi = false);
|
||||
DriveManager(MoveControl *moveControl, Ps3Controller *gamepad, bool wifi = false);
|
||||
|
||||
/**
|
||||
* @brief Destroy the Drive Manager object
|
||||
@@ -117,6 +117,7 @@ class DriveManager {
|
||||
private:
|
||||
Modi currentModus = Modi::Off;
|
||||
MoveControl *moveControl;
|
||||
Ps3Controller *gamepad;
|
||||
DriveModi *currentModusPtr = nullptr;
|
||||
Navigation* navigation;
|
||||
SPIClass* spiPort;
|
||||
|
||||
Reference in New Issue
Block a user