-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added methods to create the JoypadControlServer device internally #50
Conversation
{ | ||
yCError(OPENXRHEADSET) << "Could not open" << m_rpcPortName << " RPC port."; | ||
return false; | ||
} | ||
} | ||
|
||
{ | ||
std::lock_guard<std::mutex> lock(m_joypadServerMutex); | ||
m_thisDevice.give(this, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor:
m_thisDevice.give(this, false); | |
m_thisDevice.give(this, /*own=*/false); |
See https://abseil.io/tips/94 for rationale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, I was too fast in merging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, I indeed commented after approving.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have opened #51
Fixes #49. In particular, instead of relying on an external attach between the
OpenXR
device and theJoypadControlServer
, this modification allows running theJoypadControlServer
internally, and rebooting it every time it is needed.