From 17f40ecc266f2e7e1702db115b19f1ee3fdee344 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 17 Jun 2020 11:48:27 +0100 Subject: [PATCH] st/oxr: Use the transformed boolean value --- src/xrt/state_trackers/oxr/oxr_input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c index 91bc0e0e1..8ccb9bcb9 100644 --- a/src/xrt/state_trackers/oxr/oxr_input.c +++ b/src/xrt/state_trackers/oxr/oxr_input.c @@ -842,8 +842,10 @@ oxr_action_cache_update(struct oxr_logger *log, } #endif case XRT_INPUT_TYPE_BOOLEAN: { - changed = (input->value.boolean != last.value.boolean); - cache->current.value.boolean = input->value.boolean; + changed = + (transformed.value.boolean != last.value.boolean); + cache->current.value.boolean = + transformed.value.boolean; break; } case XRT_INPUT_TYPE_POSE: return;