Support passing in arguments from embedding. Read arguments for Magic Leap from SERVO_ARGS env var.

This commit is contained in:
Josh Matthews 2019-03-20 16:41:20 -04:00
parent d0e9acf1eb
commit a207574b4c
10 changed files with 46 additions and 18 deletions

View file

@ -29,7 +29,7 @@ public:
/**
* Constructs the Landscape Application.
*/
Servo2D(const char* uri);
Servo2D(const char* uri, const char* args);
/**
* Destroys the Landscape Application.
@ -145,4 +145,5 @@ private:
bool controller_trigger_down_ = false; // Is the controller trigger currently down?
ServoInstance* servo_ = nullptr; // the servo instance we're embedding
const char* uri_ = nullptr;
const char* args_ = nullptr;
};