The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

oxr/input: Also print input name in OXR_DEBUG_BINDINGS

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2431>

authored by

Christoph Haag and committed by
Marge Bot
84816e97 37b49b0c

+6 -4
+6 -4
src/xrt/state_trackers/oxr/oxr_input.c
··· 9 9 * @ingroup oxr_main 10 10 */ 11 11 12 + #include "bindings/b_generated_bindings.h" 12 13 #include "util/u_debug.h" 13 14 #include "util/u_time.h" 14 15 #include "util/u_misc.h" ··· 1618 1619 } else { 1619 1620 oxr_slog(slog, "\t\tBound to:\n"); 1620 1621 for (uint32_t i = 0; i < input_count; i++) { 1621 - enum xrt_input_type t = XRT_GET_INPUT_TYPE(inputs[i].input->name); 1622 - bool active = inputs[i].input->active; 1623 - oxr_slog(slog, "\t\t\t'%s' on '%s' (%s)\n", xrt_input_type_to_str(t), 1624 - inputs[i].xdev->str, active ? "active" : "inactive"); 1622 + struct xrt_input *input = inputs[i].input; 1623 + enum xrt_input_type t = XRT_GET_INPUT_TYPE(input->name); 1624 + bool active = input->active; 1625 + oxr_slog(slog, "\t\t\t'%s' ('%s') on '%s' (%s)\n", xrt_input_name_string(input->name), 1626 + xrt_input_type_to_str(t), inputs[i].xdev->str, active ? "active" : "inactive"); 1625 1627 } 1626 1628 } 1627 1629