NeoSpark314 / godot_oculus_quest_toolkit

An easy to use VR toolkit for Oculus Quest development using the Godot game engine
MIT License
367 stars 38 forks source link

Parse Error: invalid index 'CONTROLLER_BUTTON' in constant expression #48

Closed NeoSpark314 closed 3 years ago

NeoSpark314 commented 3 years ago

@Wavesonics reported this issue.

The change to var instead of enum for remapping controller buttons broke the use of button names/assignments in the editor

The error is for example

 res://OQ_Toolkit/OQ_ARVRController/scripts/Feature_AreaObjectGrab.gd:21 - Parse Error: invalid index 'CONTROLLER_BUTTON' in constant expression
 modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERROR