Custom input events

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sergey-K-Chernov

Is there a simpe * way to create my own heir to InputEvent?

I’d like to catch, say, three separate JoypadMotion events, mark them handled and make an event “JoypadStateChange” to send all three axes as properties of one event.

*- I mean, no changes to the engine itself, just using GDScript or maybe GDNative.

Not sure exactly what you want to occur, but this sounds very similar:
https://forum.godotengine.org/30476/how-to-add-an-inputevent-to-inputmap-with-code

Specifically the InputMap singleton documentation linked from there.

eod | 2020-04-25 01:17

That’s not exatly what I want.
That’s about InputMap and InputEventAction. InputEventAction has only one float property to use, “strength”.
I want to make an event with several properties, say, “axis_strength_1”, “axis_strength_2”, “axis_strength_3” and so on, or with one property which is of other type, for instance, Basis or Transform2D.

Sergey-K-Chernov | 2020-04-25 16:42