godot_openvr icon indicating copy to clipboard operation
godot_openvr copied to clipboard

Cannot differentiate the trackpad and joystick on Valve Index Knuckles

Open TomJamesPearce opened this issue 2 years ago • 1 comments

At the moment, both the joystick and trackpad on the valve index knuckles bind to index 0 and 1 on get_joystick_axis

The workaround I have for now is to use the button press/release events the joystick emits on move on index 14 that the trackpad does not in order to tell whether I should be ignoring the joystick axis values.

Since it's normal to rest your thumbs on the trackpads on the index, and the frequency of using get_joystick_axis in order to implement locomotion, ideally they'd be bound to different indexes.

I'm not sure how difficult this would be to support as I haven't looked at implementation at all, or whether listening for button press/release events to differentiate functionality is expected.

EDIT: More testing shows that the trackpad does emit a press even on index 14 if you actually press it rather than just "scroll" or touch.

TomJamesPearce avatar Oct 05 '21 15:10 TomJamesPearce

I never ended up mapping those after the action system was introduced. Should be a relative easy fix.

Note that this is fully mapped and working if you use the latest OpenXR plugin

BastiaanOlij avatar Oct 16 '21 08:10 BastiaanOlij