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.

in Engine by (12 points)

Not sure exactly what you want to occur, but this sounds very similar:

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.