improve vr
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user