summaryrefslogtreecommitdiff
path: root/modules/gdnative
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2020-12-21 00:26:44 +0100
committerGitHub <noreply@github.com>2020-12-21 00:26:44 +0100
commitbccbd4be90baa8ad104f05310e7bbc3dbde33060 (patch)
treec67c8a6788fdf97b93be569f384eb90c8da27bb6 /modules/gdnative
parentf7ddcbf446e88b155f1172d94d30a7974e67e8a8 (diff)
parente40ab065996b08382bc74f314b8a49c970cbc056 (diff)
Merge pull request #44261 from madmiraal/rename-trackerhand-enums
Rename TrackerHand enums
Diffstat (limited to 'modules/gdnative')
-rw-r--r--modules/gdnative/xr/xr_interface_gdnative.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/xr/xr_interface_gdnative.cpp b/modules/gdnative/xr/xr_interface_gdnative.cpp
index d03fc33935..a21fefb6a2 100644
--- a/modules/gdnative/xr/xr_interface_gdnative.cpp
+++ b/modules/gdnative/xr/xr_interface_gdnative.cpp
@@ -305,9 +305,9 @@ godot_int GDAPI godot_xr_add_controller(char *p_device_name, godot_int p_hand, g
new_tracker->set_name(p_device_name);
new_tracker->set_type(XRServer::TRACKER_CONTROLLER);
if (p_hand == 1) {
- new_tracker->set_hand(XRPositionalTracker::TRACKER_LEFT_HAND);
+ new_tracker->set_hand(XRPositionalTracker::TRACKER_HAND_LEFT);
} else if (p_hand == 2) {
- new_tracker->set_hand(XRPositionalTracker::TRACKER_RIGHT_HAND);
+ new_tracker->set_hand(XRPositionalTracker::TRACKER_HAND_RIGHT);
}
// also register as joystick...