Viewport VR Preview: OpenXR: Many Xbox Gamepad component paths / bindings are not functional #105014

Open
opened 2023-11-20 15:00:58 +01:00 by t3h-m00kz · 0 comments

System Information
Operating system: W10 x64
Graphics card: 1080TI

Blender Version
Broken: 3.6.5
Worked: Never

Many Xbox Gamepad inputs bound in the defaults.py configs\file are not functional.

The only ones functional are:
…/input/trigger_left/value
…/input/trigger_right/value
…/input/a/click

Altering the file \Blender Foundation\Blender 3.6.5\3.6\scripts\addons\viewport_vr_preview\configs\defaults.py to point to different Xbox component paths results in broken behavior.

 ("blender_default_gamepad",
  {"items":
   [("teleport", {"type": 'FLOAT', "user_paths": ['/user/gamepad'], "op": 'wm.xr_navigation_teleport', "op_mode": 'MODAL', "bimanual": 'False', "haptic_name": '', "haptic_match_user_paths": 'False', "haptic_duration": '0.0', "haptic_frequency": '0.0', "haptic_amplitude": '0.0', "haptic_mode": 'PRESS'},
     {"op_properties":
      [("interpolation", 0.9),
       ("from_viewer", True),
       ("color", (0.0, 1.0, 1.0, 1.0)),
       ],},
     {"bindings":[
        ("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/dpad_up/click'], "threshold": '0.30000001192092896', "axis_region": 'ANY'}),          #FAILS
        #("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/thumbstick_left/click'], "threshold": '0.30000001192092896', "axis_region": 'ANY'}),  #FAILS
        #("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/thumbstick_left/y'], "threshold": '0.30000001192092896', "axis_region": 'POSITIVE'}), #FAILS
        #("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/trigger_right/value'], "threshold": '0.30000001192092896', "axis_region": 'ANY'}),     #WORKS
       ],},),
    ("fly", {"type": 'FLOAT', "user_paths": ['/user/gamepad'], "op": 'wm.xr_navigation_fly', "op_mode": 'MODAL', "bimanual": 'False', "haptic_name": '', "haptic_match_user_paths": 'False', "haptic_duration": '0.0', "haptic_frequency": '0.0', "haptic_amplitude": '0.0', "haptic_mode": 'PRESS'}, None,
     {"bindings":[
         ("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/trigger_left/value'], "threshold": '0.30000001192092896', "axis_region": 'ANY'}),
       ],},),

Video attached: 2023-11-20 05-44-38.mp4

**System Information** Operating system: W10 x64 Graphics card: 1080TI **Blender Version** Broken: 3.6.5 Worked: Never Many Xbox Gamepad inputs bound in the defaults.py configs\file are not functional. The only ones functional are: …/input/trigger_left/value …/input/trigger_right/value …/input/a/click Altering the file \Blender Foundation\Blender 3.6.5\3.6\scripts\addons\viewport_vr_preview\configs\defaults.py to point to different Xbox component paths results in broken behavior. ``` ("blender_default_gamepad", {"items": [("teleport", {"type": 'FLOAT', "user_paths": ['/user/gamepad'], "op": 'wm.xr_navigation_teleport', "op_mode": 'MODAL', "bimanual": 'False', "haptic_name": '', "haptic_match_user_paths": 'False', "haptic_duration": '0.0', "haptic_frequency": '0.0', "haptic_amplitude": '0.0', "haptic_mode": 'PRESS'}, {"op_properties": [("interpolation", 0.9), ("from_viewer", True), ("color", (0.0, 1.0, 1.0, 1.0)), ],}, {"bindings":[ ("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/dpad_up/click'], "threshold": '0.30000001192092896', "axis_region": 'ANY'}), #FAILS #("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/thumbstick_left/click'], "threshold": '0.30000001192092896', "axis_region": 'ANY'}), #FAILS #("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/thumbstick_left/y'], "threshold": '0.30000001192092896', "axis_region": 'POSITIVE'}), #FAILS #("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/trigger_right/value'], "threshold": '0.30000001192092896', "axis_region": 'ANY'}), #WORKS ],},), ("fly", {"type": 'FLOAT', "user_paths": ['/user/gamepad'], "op": 'wm.xr_navigation_fly', "op_mode": 'MODAL', "bimanual": 'False', "haptic_name": '', "haptic_match_user_paths": 'False', "haptic_duration": '0.0', "haptic_frequency": '0.0', "haptic_amplitude": '0.0', "haptic_mode": 'PRESS'}, None, {"bindings":[ ("gamepad", {"profile": '/interaction_profiles/microsoft/xbox_controller', "component_paths": ['/input/trigger_left/value'], "threshold": '0.30000001192092896', "axis_region": 'ANY'}), ],},), ``` Video attached: 2023-11-20 05-44-38.mp4
t3h-m00kz added the
Status
Needs Triage
Type
Report
Priority
Normal
labels 2023-11-20 15:00:58 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#105014
No description provided.