Skip to content

Commit

Permalink
Hide Wave controller if input is captured by system (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored and MortimerGoro committed Mar 20, 2019
1 parent b1ba6ae commit 4b2aefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/wavevr/cpp/DeviceDelegateWaveVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ struct DeviceDelegateWaveVR::State {

for (int index = 0; index < kMaxControllerCount; index++) {
Controller& controller = controllers[index];
if(!WVR_IsDeviceConnected(controller.type)) {
if (WVR_IsInputFocusCapturedBySystem() || !WVR_IsDeviceConnected(controller.type)) {
if (controller.enabled) {
delegate->SetEnabled(index, false);
controller.enabled = false;
Expand Down

0 comments on commit 4b2aefc

Please sign in to comment.