st/oxr: Use correct path for gamepad

This commit is contained in:
Jakob Bornecrantz 2020-05-30 19:59:51 +01:00
parent 57af7a7ce4
commit 00818881de
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
OpenXR: Use the correct XrPath for `/user/gamepad` while it sits in the users
hand itsn't `/user/hand/gamepad` as previously believed.

View file

@ -135,7 +135,7 @@ oxr_instance_create(struct oxr_logger *log,
cache_path(log, inst, "/user/hand/head", &inst->path_cache.head);
cache_path(log, inst, "/user/hand/left", &inst->path_cache.left);
cache_path(log, inst, "/user/hand/right", &inst->path_cache.right);
cache_path(log, inst, "/user/hand/gamepad", &inst->path_cache.gamepad);
cache_path(log, inst, "/user/gamepad", &inst->path_cache.gamepad);
cache_path(log, inst, "/interaction_profiles/khr/simple_controller", &inst->path_cache.khr_simple_controller);
cache_path(log, inst, "/interaction_profiles/google/daydream_controller", &inst->path_cache.google_daydream_controller);
cache_path(log, inst, "/interaction_profiles/htc/vive_controller", &inst->path_cache.htc_vive_controller);