mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-15 19:38:33 +00:00
d/steamvr_lh: Fix disabling of hand simulation
This commit is contained in:
parent
59c34e17b4
commit
16a26c7c93
|
@ -253,8 +253,8 @@ ControllerDevice::set_input_class(const InputClass *input_class)
|
||||||
inputs_map.insert({path, &inputs_vec.back()});
|
inputs_map.insert({path, &inputs_vec.back()});
|
||||||
}
|
}
|
||||||
|
|
||||||
has_index_hand_tracking = !input_class->finger_curls.empty();
|
has_index_hand_tracking = debug_get_bool_option_lh_emulate_hand() && !input_class->finger_curls.empty();
|
||||||
if (debug_get_bool_option_lh_emulate_hand() && has_index_hand_tracking) {
|
if (has_index_hand_tracking) {
|
||||||
finger_inputs_vec.reserve(input_class->finger_curls.size());
|
finger_inputs_vec.reserve(input_class->finger_curls.size());
|
||||||
for (const auto &[path, finger] : input_class->finger_curls) {
|
for (const auto &[path, finger] : input_class->finger_curls) {
|
||||||
assert(finger_inputs_vec.capacity() >= finger_inputs_vec.size() + 1);
|
assert(finger_inputs_vec.capacity() >= finger_inputs_vec.size() + 1);
|
||||||
|
|
Loading…
Reference in a new issue