Godot Version
4.1.1
Question
I’ve been trying to do the last scons command when compiling my gdextension, but I keep getting this error:
Auto-detected 8 CPU cores available for build parallelism. Using 7 cores by default. You can override it with the -j argument.
Building for architecture x86_64 on platform windows
scons: done reading SConscript files.
scons: Building targets ...
Compiling godot-cpp\gen\src\classes\input.cpp ...
Compiling godot-cpp\gen\src\classes\rendering_server.cpp ...
Compiling godot-cpp\gen\src\classes\rich_text_label.cpp ...
Compiling godot-cpp\gen\src\classes\rigid_body2d.cpp ...
Compiling godot-cpp\gen\src\classes\rigid_body3d.cpp ...
Compiling godot-cpp\gen\src\classes\root_motion_view.cpp ...
Compiling godot-cpp\gen\src\classes\scene_multiplayer.cpp ...
godot-cpp\gen\src\classes\input.cpp(197): error C2039: 'should_ignore_device': is not a member of 'godot::Input'
godot-cpp\include\godot_cpp/classes/input.hpp(54): note: see declaration of 'godot::Input'
godot-cpp\gen\src\classes\input.cpp(197): error C2270: 'should_ignore_device': modifiers not allowed on nonmember functions
godot-cpp\gen\src\classes\input.cpp(204): error C2065: '_owner': undeclared identifier
scons: *** [godot-cpp\gen\src\classes\input.windows.template_debug.x86_64.obj] Error 2
godot-cpp\gen\src\classes\rendering_server.cpp(3076): error C2039: 'debug_canvas_item_get_rect': is not a member of 'godot::RenderingServer'
godot-cpp\include\godot_cpp/classes/rendering_server.hpp(74): note: see declaration of 'godot::RenderingServer'
godot-cpp\gen\src\classes\rendering_server.cpp(3079): error C2065: '_owner': undeclared identifier
scons: *** [godot-cpp\gen\src\classes\rendering_server.windows.template_debug.x86_64.obj] Error 2
scons: building terminated because of errors.
I suspect its an issue with version mismatch when generating the godot-cpp folder, but I can’t seem to find the cause.
Either way, what I’m trying to do is to directly access raw input data without using the built-in godot API, because I need very high input precision/accuracy (ideally can’t be off by >3 ms)