-
Notifications
You must be signed in to change notification settings - Fork 1
/
Controller.layouts.min.js
19 lines (17 loc) · 2.93 KB
/
Controller.layouts.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"use strict";
/*! Controller.layouts.min.js - v1.0.2-buzz - 2022-07-16 */
!function () {
var a = { match: "2In1 USB Joystick", name: "Wired Controller for PS3 by Mgear", description: "A wired, PS3-style controller.", buttons: { FACE_1: 0, FACE_2: 1, FACE_3: 2, FACE_4: 3, LEFT_SHOULDER: 6, RIGHT_SHOULDER: 7, LEFT_SHOULDER_BOTTOM: 4, RIGHT_SHOULDER_BOTTOM: 5, LEFT_ANALOG_BUTTON: 10, RIGHT_ANALOG_BUTTON: 11, START: 9, SELECT: 8, DPAD_UP: 12, DPAD_DOWN: 13, DPAD_LEFT: 14, DPAD_RIGHT: 15 }, axes: { LEFT_ANALOG_STICK_HOR: 0, LEFT_ANALOG_STICK_VERT: 1, RIGHT_ANALOG_STICK_HOR: 3, RIGHT_ANALOG_STICK_VERT: 2 } };Controller.layouts.register(a);
}(), function () {
var a = { match: "Logitech Buzz(tm) Controller V1", inexact_match: "Buzz", name: "Buzz Quiz Controller for PS2", description: "A wired USB PS2 Buzz controller.", buttons: { P1_RED: 0, P1_YELLOW: 1, P1_GREEN: 2, P1_ORANGE: 3, P1_BLUE: 4, P2_RED: 5, P2_YELLOW: 6, P2_GREEN: 7, P2_ORANGE: 8, P2_BLUE: 9, P3_RED: 10, P3_YELLOW: 11, P3_GREEN: 12, P3_ORANGE: 13, P3_BLUE: 14, P4_RED: 15, P4_YELLOW: 16, P4_GREEN: 17, P4_ORANGE: 18, P4_BLUE: 19 }, axes: {} };Controller.layouts.register(a);
}(), function () {
function a(a, b) {
if (a) {
var c = a.axes[9],
d = b.data;return void 0 === d.value ? (b.data = { value: c, pressed: !1 }, 0) : c === d.value ? (b.data = { value: b.data.value, pressed: b.data.pressed }, d.pressed ? 1 : 0) : d.pressed ? (b.data = { value: c, pressed: !1 }, 0) : (b.data = { value: c, pressed: !0 }, 1);
}
}var b = { match: "Xbox One Wired Controller", name: "Xbox One (Xbox 360 Controller Driver)", description: "A standard Xbox One gamepad on Mac OS X using the driver Xbox 360 Controller Driver (https://github.com/360Controller/360Controller/).", init: function init() {
console.warn("Reporting of buttons.HOME is buggy and unreliable.");
}, buttons: { FACE_1: 0, FACE_2: 1, FACE_3: 2, FACE_4: 3, LEFT_SHOULDER: 4, RIGHT_SHOULDER: 5, LEFT_ANALOG_BUTTON: 6, RIGHT_ANALOG_BUTTON: 7, START: 8, SELECT: 9, DPAD_UP: 11, DPAD_DOWN: 12, DPAD_LEFT: 13, DPAD_RIGHT: 14 }, axes: { LEFT_ANALOG_STICK_HOR: 0, LEFT_ANALOG_STICK_VERT: 1, LEFT_SHOULDER_BOTTOM: { index: 2, inputMin: -1, type: "buttons" }, RIGHT_ANALOG_STICK_HOR: 3, RIGHT_ANALOG_STICK_VERT: 4, RIGHT_SHOULDER_BOTTOM: { index: 5, inputMin: -1, type: "buttons" }, HOME: { index: 9, type: "buttons", data: { value: void 0, pressed: !1 }, method: a, ignoreConversion: !0 } } },
c = { buttons: { FACE_1: 3, FACE_2: 4, FACE_3: 5, FACE_4: 6, LEFT_SHOULDER: 11, RIGHT_SHOULDER: 12, LEFT_ANALOG_BUTTON: 13, RIGHT_ANALOG_BUTTON: 14, START: 2, SELECT: 1, DPAD_UP: 7, DPAD_DOWN: 8, DPAD_LEFT: 9, DPAD_RIGHT: 10, HOME: 15 }, axes: { LEFT_ANALOG_STICK_HOR: 0, LEFT_ANALOG_STICK_VERT: 1, LEFT_SHOULDER_BOTTOM: { index: 2, inputMin: -1, type: "buttons" }, RIGHT_ANALOG_STICK_HOR: 3, RIGHT_ANALOG_STICK_VERT: 4, RIGHT_SHOULDER_BOTTOM: { index: 5, inputMin: -1, type: "buttons" } } };b.Mozilla = c, Controller.layouts.register(b);
}();