|
|
|
@ -19,7 +19,7 @@ class Wiimote extends WiiDevice {
|
|
|
|
|
RIGHT: 106,
|
|
|
|
|
LEFT: 105,
|
|
|
|
|
UP: 103,
|
|
|
|
|
DOWN: 108,
|
|
|
|
|
DOWN: 108
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.configs = {
|
|
|
|
@ -36,24 +36,24 @@ class Wiimote extends WiiDevice {
|
|
|
|
|
RIGHT: "BTN_DPAD_UP",
|
|
|
|
|
PLUS: "BTN_START",
|
|
|
|
|
MINUS: "BTN_SELECT",
|
|
|
|
|
HOME: "BTN_MODE",
|
|
|
|
|
},
|
|
|
|
|
HOME: "BTN_MODE"
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
"Xbox360 controller - Towerfall": new Config(XboxPadSimulator, {
|
|
|
|
|
button_to_original_keycode: this.buttons,
|
|
|
|
|
button_to_simulated_event_name: {
|
|
|
|
|
TWO: "BTN_B",
|
|
|
|
|
ONE: "BTN_Y",
|
|
|
|
|
B: "BTN_TR",
|
|
|
|
|
A: "BTN_X",
|
|
|
|
|
TWO: "BTN_A",
|
|
|
|
|
ONE: "BTN_B",
|
|
|
|
|
B: "BTN_Y",
|
|
|
|
|
A: "BTN_TR",
|
|
|
|
|
UP: "BTN_DPAD_LEFT",
|
|
|
|
|
DOWN: "BTN_DPAD_RIGHT",
|
|
|
|
|
LEFT: "BTN_DPAD_DOWN",
|
|
|
|
|
RIGHT: "BTN_DPAD_UP",
|
|
|
|
|
PLUS: "BTN_START",
|
|
|
|
|
MINUS: "BTN_A",
|
|
|
|
|
HOME: "BTN_MODE",
|
|
|
|
|
},
|
|
|
|
|
HOME: "BTN_MODE"
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
"Xbox360 controller - swap dpad X/Y (Starwhal)": new Config(
|
|
|
|
|
XboxPadSimulator,
|
|
|
|
@ -70,8 +70,8 @@ class Wiimote extends WiiDevice {
|
|
|
|
|
RIGHT: "BTN_DPAD_LEFT",
|
|
|
|
|
PLUS: "BTN_START",
|
|
|
|
|
MINUS: "BTN_SELECT",
|
|
|
|
|
HOME: "BTN_MODE",
|
|
|
|
|
},
|
|
|
|
|
HOME: "BTN_MODE"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
),
|
|
|
|
|
wsad: new Config(KeyboardSimulator, {
|
|
|
|
@ -87,8 +87,8 @@ class Wiimote extends WiiDevice {
|
|
|
|
|
MINUS: "KEY_Z",
|
|
|
|
|
PLUS: "KEY_X",
|
|
|
|
|
ONE: "KEY_C",
|
|
|
|
|
TWO: "KEY_V",
|
|
|
|
|
},
|
|
|
|
|
TWO: "KEY_V"
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
"Keyboard - 0123..": new Config(KeyboardSimulator, {
|
|
|
|
|
button_to_original_keycode: this.buttons,
|
|
|
|
@ -103,8 +103,8 @@ class Wiimote extends WiiDevice {
|
|
|
|
|
MINUS: "KEY_7",
|
|
|
|
|
PLUS: "KEY_8",
|
|
|
|
|
ONE: "KEY_9",
|
|
|
|
|
HOME: "KEY_ESC",
|
|
|
|
|
},
|
|
|
|
|
HOME: "KEY_ESC"
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
"Keyboard - QWERTY": new Config(KeyboardSimulator, {
|
|
|
|
|
button_to_original_keycode: this.buttons,
|
|
|
|
@ -120,10 +120,10 @@ class Wiimote extends WiiDevice {
|
|
|
|
|
MINUS: "KEY_I",
|
|
|
|
|
PLUS: "KEY_O",
|
|
|
|
|
ONE: "KEY_P",
|
|
|
|
|
HOME: "KEY_ESC",
|
|
|
|
|
},
|
|
|
|
|
HOME: "KEY_ESC"
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
logger: new LoggerConfig(),
|
|
|
|
|
logger: new LoggerConfig()
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|