mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
Remove now unecessary vive hack
This commit is contained in:
parent
570777e6f3
commit
9be8d1edf9
1 changed files with 1 additions and 7 deletions
|
@ -285,13 +285,7 @@ void ViveControllerManager::update(float deltaTime, bool jointsCaptured) {
|
|||
handleButtonEvent(i, pressed, left);
|
||||
}
|
||||
for (uint32_t i = 0; i < vr::k_unControllerStateAxisCount; i++) {
|
||||
auto mask = vr::ButtonMaskFromId((vr::EVRButtonId)(i + vr::k_EButton_Axis0));
|
||||
bool pressed = 0 != (controllerState.ulButtonPressed & mask);
|
||||
if (pressed || true) {
|
||||
handleAxisEvent(i, controllerState.rAxis[i].x, controllerState.rAxis[i].y, left);
|
||||
} else {
|
||||
handleAxisEvent(i, 0.0f, 0.0f, left);
|
||||
}
|
||||
handleAxisEvent(i, controllerState.rAxis[i].x, controllerState.rAxis[i].y, left);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue