Skip to content
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

Merged
merged 5 commits into from
Nov 15, 2024

Conversation

S-Dafarra
Copy link
Member

@S-Dafarra S-Dafarra commented Nov 14, 2024

Fixes #49. In particular, instead of relying on an external attach between the OpenXR device and the JoypadControlServer, this modification allows running the JoypadControlServer internally, and rebooting it every time it is needed.

@S-Dafarra S-Dafarra merged commit c87c2f4 into main Nov 15, 2024
8 checks passed
@S-Dafarra S-Dafarra deleted the manual_joypad_server branch November 15, 2024 11:10
{
yCError(OPENXRHEADSET) << "Could not open" << m_rpcPortName << " RPC port.";
return false;
}
}

{
std::lock_guard<std::mutex> lock(m_joypadServerMutex);
m_thisDevice.give(this, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor:

Suggested change
m_thisDevice.give(this, false);
m_thisDevice.give(this, /*own=*/false);

See https://abseil.io/tips/94 for rationale.

Copy link
Member Author

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

Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have opened #51

S-Dafarra added a commit that referenced this pull request Nov 15, 2024
S-Dafarra added a commit that referenced this pull request Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants