I'm playing with a games code for personal use and one of the changes I wanted to make was to make the movement wasd, but when I went in and switched the keymapping around, it ignores the new w is up and treats it like it's still page down, even though I changed that to e. Is there somewhere else I need to look to change controls?
Here's the keymap after I changed it.
Input.keyMapper = {
9: 'tab', // tab
13: 'ok', // enter
16: 'shift', // shift
17: 'control', // control
18: 'control', // alt
27: 'escape', // escape
32: 'ok', // space
33: 'pageup', // pageup
34: 'pagedown', // pagedown
65: 'left', // A
87: 'up', // W
68: 'right', // D
83: 'down', // S
45: 'escape', // insert
81: 'pageup', // Q
69: 'pagedown', // E
88: 'escape', // X
90: 'ok', // Z
96: 'escape', // numpad 0
98: 'down', // numpad 2
100: 'left', // numpad 4
102: 'right', // numpad 6
104: 'up', // numpad 8
120: 'debug', // F9
};
Here's the keymap after I changed it.
Input.keyMapper = {
9: 'tab', // tab
13: 'ok', // enter
16: 'shift', // shift
17: 'control', // control
18: 'control', // alt
27: 'escape', // escape
32: 'ok', // space
33: 'pageup', // pageup
34: 'pagedown', // pagedown
65: 'left', // A
87: 'up', // W
68: 'right', // D
83: 'down', // S
45: 'escape', // insert
81: 'pageup', // Q
69: 'pagedown', // E
88: 'escape', // X
90: 'ok', // Z
96: 'escape', // numpad 0
98: 'down', // numpad 2
100: 'left', // numpad 4
102: 'right', // numpad 6
104: 'up', // numpad 8
120: 'debug', // F9
};