summaryrefslogtreecommitdiffstats
path: root/modules/gdnative/xr/xr_interface_gdnative.cpp
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-10 11:16:14 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-21 06:32:53 +0000
commitfdf92ca298d59877707ba5da52b00f3e48435f86 (patch)
tree99bba4e61bde8414ee1b625d34d9e3d13ee13d5c /modules/gdnative/xr/xr_interface_gdnative.cpp
parentbccbd4be90baa8ad104f05310e7bbc3dbde33060 (diff)
downloadredot-engine-fdf92ca298d59877707ba5da52b00f3e48435f86.tar.gz
Rename XRPositionalTracker methods
Renames: - set_type() -> set_tracker_type() - set_name() -> set_tracker_name() - get_tracks_orientation() - `is_tracking_orientation() - get_tracks_position() -> `is_tracking_position() - get_hand() -> get_tracker_hand() - set_hand() -> set_tracker_hand()
Diffstat (limited to 'modules/gdnative/xr/xr_interface_gdnative.cpp')
-rw-r--r--modules/gdnative/xr/xr_interface_gdnative.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gdnative/xr/xr_interface_gdnative.cpp b/modules/gdnative/xr/xr_interface_gdnative.cpp
index a21fefb6a2..d1d575db62 100644
--- a/modules/gdnative/xr/xr_interface_gdnative.cpp
+++ b/modules/gdnative/xr/xr_interface_gdnative.cpp
@@ -302,12 +302,12 @@ godot_int GDAPI godot_xr_add_controller(char *p_device_name, godot_int p_hand, g
ERR_FAIL_NULL_V(input, 0);
XRPositionalTracker *new_tracker = memnew(XRPositionalTracker);
- new_tracker->set_name(p_device_name);
- new_tracker->set_type(XRServer::TRACKER_CONTROLLER);
+ new_tracker->set_tracker_name(p_device_name);
+ new_tracker->set_tracker_type(XRServer::TRACKER_CONTROLLER);
if (p_hand == 1) {
- new_tracker->set_hand(XRPositionalTracker::TRACKER_HAND_LEFT);
+ new_tracker->set_tracker_hand(XRPositionalTracker::TRACKER_HAND_LEFT);
} else if (p_hand == 2) {
- new_tracker->set_hand(XRPositionalTracker::TRACKER_HAND_RIGHT);
+ new_tracker->set_tracker_hand(XRPositionalTracker::TRACKER_HAND_RIGHT);
}
// also register as joystick...