Skip to content

Commit

Permalink
OpenXR: Make sure wedge on DPad modifier is expressed in degrees.
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiaanOlij committed Dec 20, 2024
1 parent 89001f9 commit c378443
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void OpenXRDpadBindingModifier::_bind_methods() {

ClassDB::bind_method(D_METHOD("set_wedge_angle", "wedge_angle"), &OpenXRDpadBindingModifier::set_wedge_angle);
ClassDB::bind_method(D_METHOD("get_wedge_angle"), &OpenXRDpadBindingModifier::get_wedge_angle);
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "wedge_angle"), "set_wedge_angle", "get_wedge_angle");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "wedge_angle", PROPERTY_HINT_RANGE, "1.0, 180.0, 0.1,radians_as_degrees"), "set_wedge_angle", "get_wedge_angle");

ClassDB::bind_method(D_METHOD("set_is_sticky", "is_sticky"), &OpenXRDpadBindingModifier::set_is_sticky);
ClassDB::bind_method(D_METHOD("get_is_sticky"), &OpenXRDpadBindingModifier::get_is_sticky);
Expand Down

0 comments on commit c378443

Please sign in to comment.