function joystickon() {
enableJoystick();
moveMap.bind(joystick0, "xaxis", yaw);
moveMap.bind(joystick0, "yaxis", pitch);
moveMap.bind(joystick0, "button12", moveforward);
moveMap.bind(joystick0, "button14", movebackward);
moveMap.bind(joystick0, "button15", moveleft);
moveMap.bind(joystick0, "button13", moveright);
}
function joystickoff() {
disableJoystick();
moveMap.bind(mouse0, "xaxis", yaw);
moveMap.bind(mouse0, "yaxis", pitch);
moveMap.bind(keyboard, "w", moveforward);
moveMap.bind(keyboard, "s", movebackward);
moveMap.bind(keyboard, "a", moveleft);
moveMap.bind(keyboard, "d", moveright);
}
But the axis isn't working the way I want it. It's to slow.... (verrrrryyyyyyyy slooooow).