|Topic was automatically imported from the old Question2Answer platform.
How do I assign or map an
InputMap action to an onscreen software button instead of using actual hardware keys from keyboard to perform the intended action (somewhat like what is possible with
Is it possible in Godot ?
It is not recommended way in godot for touch input. Instead, feed action back to the engine then you processed your input.
From Using InputEvent — Godot Engine (stable) documentation in English
Alternatively, it may be desired to supply the game back with an
action from the game code (a good example of this is detecting
But if you want you can use TouchScreenButton — Godot Engine (stable) documentation in English
So there’s no way I can do as I want?
You can. See second link. But it’s a very simple button.
If you need something more complex, you will have to do it yourself. See first link.
I already tried the
TouchScreenButton but it doesn’t show up. Why?
Assign action in inspector window of
Sorry for being this late, but I had my exams an have too, so I’d be less active in the forum.
Of course I did that, but it doesn’t seem to work. Any idea why?
Sorry if I’m too annoying but I’m new to this - your engine and gamedev in itself.
It doesn’t work in the way that the button is not getting the action assigned to itself, don’t know why.
This is the code I’m using for it:
Is it alright?
I troubled you a lot, but it was that I had actually commented a code snippet in another script which I didn’t just see.
That was all causing the problem.
Sorry once again and Thanks a lot for your help