Skip to content

Commit

Permalink
Making Focus Plus use WVR_InputId_Alias1_Trigger to check trigger only.
Browse files Browse the repository at this point in the history
Fixes #1930. (#1931)
  • Loading branch information
daoshengmu authored and bluemarvin committed Oct 8, 2019
1 parent da676ed commit 7782c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/wavevr/cpp/DeviceDelegateWaveVR.cpp
Expand Up @@ -303,8 +303,8 @@ struct DeviceDelegateWaveVR::State {

delegate->SetVisible(controller.index, !WVR_IsInputFocusCapturedBySystem());

const bool bumperPressed = WVR_GetInputButtonState(controller.type, WVR_InputId_Alias1_Digital_Trigger)
|| WVR_GetInputButtonState(controller.type, WVR_InputId_Alias1_Trigger);
const bool bumperPressed = (controller.is6DoF) ? WVR_GetInputButtonState(controller.type, WVR_InputId_Alias1_Trigger)
: WVR_GetInputButtonState(controller.type, WVR_InputId_Alias1_Digital_Trigger);
const bool touchpadPressed = WVR_GetInputButtonState(controller.type, WVR_InputId_Alias1_Touchpad);
const bool touchpadTouched = WVR_GetInputTouchState(controller.type, WVR_InputId_Alias1_Touchpad);
const bool menuPressed = WVR_GetInputButtonState(controller.type, WVR_InputId_Alias1_Menu);
Expand Down

0 comments on commit 7782c30

Please sign in to comment.