Navigation Using Arrows Keys #280
Answered
by
mikke89
hero-clashes
asked this question in
Q&A
-
so I have this setup in my game <div class="container">
<button type="button">Play</button><br />
<button type="button">Load Game</button><br />
<button type="button">Testing Areana</button><br />
<button type="button">Setting</button><br />
<button type="button">Quit</button><br />
</div> and I want to do navigation using arrows keys between them |
Beta Was this translation helpful? Give feedback.
Answered by
mikke89
Feb 6, 2022
Replies: 1 comment 9 replies
-
Hi. You just need to script this behavior as you see fit.
Good luck :) |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
hero-clashes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
You just need to script this behavior as you see fit.
element->Focus()
.focused_element->GetNextSibling()->Focus()
. Of course you also need end of list and error handling.keydown
events and act when that is triggered. See the event documentation for more details.