Changing Default Controls

From Digital Spaces

Jump to: navigation, search

Changing the default controls is a simple change in the "index.space" file.

Open the "index.space" in a text editor.

In the "index.space" look for the event that is tied to the keyboard that you want to change, for example;

<map signal="FORWARD" >

That is the event for moving forward in the space.

Below you will see the key bindings;

<event code="KC_W" type="switch" multiplier="1.0" />

That is currently set to W, presumably to go with the WASD keys.

If you wanted to change the key to the UP key for example, simply replace the "KC_W" with "KC_UP"

<event code="KC_UP" type="switch" multiplier="1.0" />

So now instead of moving forward with W you will use the UP arrow key.




You can map 2 keys to one event. If you wanted to move forward with W and with UP, simply add in both settings on 2 separate lines;

<event code="KC_UP" type="switch" multiplier="1.0" />
<event code="KC_W" type="switch" multiplier="1.0" />




Changing speed control.

You can change the speed in which you will move in a space using the "multiplier" option in the event tag.

The usual default will be 1.0, thats an approximate walking speed. If you want to move faster, simply change the multiplier number.

examples;

<event code="KC_W" type="switch" multiplier="1.0" />
<event code="KC_W" type="switch" multiplier="10" />
Personal tools