diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-03-20 16:41:20 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-05-02 19:20:02 -0400 |
commit | a207574b4c948e94f11fd61e17ebb2515295f56b (patch) | |
tree | 712425d9b0a64295828e55f6172620c93dc46378 /support/magicleap/Servo2D/code/inc/Servo2D.h | |
parent | d0e9acf1eb81c2b535a01c42b7541d2b33a0acb2 (diff) | |
download | servo-a207574b4c948e94f11fd61e17ebb2515295f56b.tar.gz servo-a207574b4c948e94f11fd61e17ebb2515295f56b.zip |
Support passing in arguments from embedding. Read arguments for Magic Leap from SERVO_ARGS env var.
Diffstat (limited to 'support/magicleap/Servo2D/code/inc/Servo2D.h')
-rw-r--r-- | support/magicleap/Servo2D/code/inc/Servo2D.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/support/magicleap/Servo2D/code/inc/Servo2D.h b/support/magicleap/Servo2D/code/inc/Servo2D.h index 61f1ee333e3..1e526bb2b94 100644 --- a/support/magicleap/Servo2D/code/inc/Servo2D.h +++ b/support/magicleap/Servo2D/code/inc/Servo2D.h @@ -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; }; |