Skip to content

Overriding _input, _unhandled_input, or _unhandled_key_input crashes and produces system error #655

@valentinAlkan

Description

@valentinAlkan

In GDExtensions 4.0, trying to override any of the input functions produces an error when input is detected. Code compiles, project runs normally, and everything is copacetic until input is detected. The following error is produced prior to crashing.

terminate called after throwing an instance of 'std::system_error'
  what():  Invalid argument

Function signature is as follows:

virtual void _unhandled_input(const Ref<InputEvent> &event) override{};

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis has been identified as a bugcrashtopic:gdextensionThis relates to the new Godot 4 extension implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions