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

Made camera controls customizable #71

Merged
merged 2 commits into from
Jul 31, 2021

Conversation

Cons-Cat
Copy link
Contributor

@Cons-Cat Cons-Cat commented Jul 30, 2021

I use the Hands Down family instead of the QWERTY keyboard layout, and I use home-row mod keys. For these reasons, I (and anybody else with this fairly popular kind of setup, at least among keyboard nerds) need the inputs to be rebindable to one or multiple keys. In my current project, I now have this line:

  app.camera.set_movement_keys({lava::key::m},
                               {lava::key::n, lava::key::left_control},
                               {lava::key::s, lava::key::left_super},
                               {lava::key::t, lava::key::left_alt});

This PR keeps WASD as the default control scheme.

@Cons-Cat
Copy link
Contributor Author

With this system, arrow keys and WASD could both move the camera by default. Do you think that's a good idea I should add?

@TheLavaBlock TheLavaBlock added the enhancement New feature or request label Jul 31, 2021
@TheLavaBlock TheLavaBlock merged commit 67b8769 into liblava:master Jul 31, 2021
@TheLavaBlock
Copy link
Member

Looks good, I'll adjust a few things later, but for now we'll do the PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants