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