Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of physical keyboard logic nodes #2933

Open
Armory-Community-Channel opened this issue Sep 25, 2023 · 2 comments
Open

Implementation of physical keyboard logic nodes #2933

Armory-Community-Channel opened this issue Sep 25, 2023 · 2 comments
Labels
feature request This issue requests a feature good first issue Relatively easy-to-solve issues for first-time contributors

Comments

@Armory-Community-Channel

Currently Armory only supports keyboard controls by the letters.
However for people like me, using an AZERTY keyboard my default movement keys are ZSQD where the WSAD is on QWERTY.
On Godot this is not an issue as the is an option to use the physical keyboard so pressing W on either keyboard with (W or Z) works normally.
Can Armory get this feature too? It saves a lot of time and effort having to set up changeable key binds and settings menus to let other keyboard users easily play the games without issue.

@Armory-Community-Channel Armory-Community-Channel added the feature request This issue requests a feature label Sep 25, 2023
@rpaladin
Copy link
Contributor

rpaladin commented Sep 25, 2023

If you're only annoyed with having to manually setup a different keymap for the viewport camera controls, Armory already supports AZERTY for viewport controls. 🙂 Go to your Blender Preferences and change the setting highlighted below for your Armory add-on.

image

Then for custom Haxe code (minus logic nodes), you can simply something like this:

#if arm_azerty
static inline var keyUp = "z";
static inline var keyDown = "s";
static inline var keyLeft = "q";
static inline var keyRight = "d";
static inline var keyStrafeUp = "e";
static inline var keyStrafeDown = "a";
#else
static inline var keyUp = "w";
static inline var keyDown = "s";
static inline var keyLeft = "a";
static inline var keyRight = "d";
static inline var keyStrafeUp = "e";
static inline var keyStrafeDown = "q";
#end

Reference: https://github.com/search?q=repo%3Aarmory3d%2Farmory+AZERTY&type=code
It would be relatively simply for someone with knowledge of coding to implement this same keymap redirect for global Haxe + logic nodes too: https://github.com/armory3d/iron/blob/main/Sources/iron/system/Input.hx
However, I'm not sure if that would be a wise idea..

@Armory-Community-Channel
Copy link
Author

I was more thinking about exported game controls. Godot has the ability to use physical keys or letter keys so was wondering if a similar thing can be implemented in Armory.

@MoritzBrueckner MoritzBrueckner added the good first issue Relatively easy-to-solve issues for first-time contributors label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request This issue requests a feature good first issue Relatively easy-to-solve issues for first-time contributors
Projects
None yet
Development

No branches or pull requests

3 participants