GodotVR / godot_openxr

(Maintenance mode) OpenXR drivers for the Godot Game Engine v3.x
MIT License
278 stars 45 forks source link

Add enums for clarity and fix incorrect play space type #224

Closed BastiaanOlij closed 1 year ago

BastiaanOlij commented 1 year ago

When exposing properties to Godot using enums, they must be sequential. Some of the enums in OpenXR aren't and we can't use them as such.

GDNative does not allow us to expose enums properly so they can be used in code (GDExtension in Godot 4 can), I have still added enum definitions where this is applicable for clarity and to ensure that our mapping code is more readable and less prone to mistakes.

Fixes #212

Replaces #216