improve vr

This commit is contained in:
2019-05-20 10:23:02 +02:00
parent ad9ada7884
commit 0e22e9918a
2 changed files with 16 additions and 4 deletions

View File

@@ -504,6 +504,10 @@ bool win32_vr_start()
async_unlock();
}
}
if (b == ViveController::kButton::Pad && a == ViveController::kAction::Press)
{
App::I.toggle_ui();
}
};
const float target_tick_rate = 90;
@@ -534,7 +538,7 @@ bool win32_vr_start()
{
controller_points.add(App::I.vr_controller_pos * 800.f);
auto p = controller_points.average();
if (glm::distance(p, controller_last_point) > 1)
if (glm::distance(p, controller_last_point) > 10)
{
async_lock();
Canvas::I->stroke_update(p, vive->m_controllers[0].axis(ViveController::kButton::Trigger).x);