Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
Incorporating PR #6 from Stephen O'Hair
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterSloth committed Sep 30, 2018
1 parent f1de0e7 commit f962194
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions PSMoveFreepieBridge/PSMoveFreepieBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void prompt_arguments(eDeviceType &deviceType, int32_t &deviceCount, int* device
bool parse_arguments(
int argc,
char** argv,
eDeviceType deviceType,
eDeviceType &deviceType,
int32_t &deviceCount,
PSMControllerID* deviceIDs,
PSMTrackingColorType* bulbColors,
Expand All @@ -82,7 +82,15 @@ bool parse_arguments(
deviceType= _deviceTypeController;
}
else if ((strcmp(argv[index], "-hmd") == 0) && deviceCount < 1) {
deviceType= _deviceTypeHMD;
deviceType = _deviceTypeHMD;
deviceCount = 1;

// set the HMD id if specified
index++;
if ((index < argc) && isdigit(*argv[index]))
deviceIDs[0] = atoi(argv[index]);

index++;
}
else if ((strcmp(argv[index], "-t") == 0) && deviceCount < 1) {
index++;
Expand Down

0 comments on commit f962194

Please sign in to comment.