0 votes

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.

asked Apr 24 in Engine by Sergey-K-Chernov (12 points)

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

Specifically the InputMap singleton documentation linked from there.

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, "axisstrength1", "axisstrength2", "axisstrength3" and so on, or with one property which is of other type, for instance, Basis or Transform2D.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.