H. Pauwelyn
H. Pauwelyn

Reputation: 14320

How to change keyboard movement to zqsd controls in A-frame scene?

By adding the wasd-controls-attribute, you can move using this keys on a Qwerty keyboard. But I have an Azerty keyboard. My question is now could I use this keys: Z (up), Q (left), S (down) and D (right) or maby the arrow keys , , and ?

Upvotes: 0

Views: 1126

Answers (1)

Piotr Adam Milewski
Piotr Adam Milewski

Reputation: 14645

  1. The WASD-CONTROLS enable You to move using the arrow keys.
  2. I looked Through WASD-CONTROLS in here, and it seems You can't add any attribute to the WASD-CONTROLS to make them work with other keys.
    If You want to make it work on zqsd, You need to copy the code of the WASD-CONTROLS and rewrite the listeners, or make an easy component with Your own implementation of acceleration etc.

Upvotes: 1

Related Questions