Skip to content

Commit b0eaef9

Browse files
committed
Update packages and reformat.
1 parent de646ab commit b0eaef9

File tree

12 files changed

+429
-220
lines changed

12 files changed

+429
-220
lines changed

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"plugins": ["prettier-plugin-svelte"],
23
"singleQuote": true,
34
"svelteSortOrder": "options-markup-scripts-styles"
45
}

app/assets/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<meta charset="UTF-8" />

app/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"author": "Hunter Perrin <hperrin@gmail.com>",
77
"license": "Apache-2.0",
88
"devDependencies": {
9-
"electron": "^26.2.0"
9+
"electron": "^27.0.3"
1010
}
1111
}

client/gamepad.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class GamePad {
132132
this.states.splice(
133133
event.gamepad.index,
134134
0,
135-
this.convertPadToState(event.gamepad)
135+
this.convertPadToState(event.gamepad),
136136
);
137137
this.connected = true;
138138
});
@@ -193,7 +193,7 @@ class GamePad {
193193
state.axes[j],
194194
(state.axes[j] < 0 && previousState.axes[j] >= 0) ||
195195
(state.axes[j] > 0 && previousState.axes[j] <= 0) ||
196-
(state.axes[j] === 0 && previousState.axes[j] !== 0)
196+
(state.axes[j] === 0 && previousState.axes[j] !== 0),
197197
);
198198
}
199199
console.log(`Axis ${amap[j]} moved. Value = ${state.axes[j]}.`);
@@ -205,19 +205,19 @@ class GamePad {
205205
if (state.buttons[j].pressed !== previousState.buttons[j].pressed) {
206206
this.fireButtonEvent(bmap[j], state.buttons[j].pressed);
207207
console.log(
208-
`Button ${bmap[j]} changed pressed state. Value = ${state.buttons[j].pressed}.`
208+
`Button ${bmap[j]} changed pressed state. Value = ${state.buttons[j].pressed}.`,
209209
);
210210
}
211211

212212
if (state.buttons[j].touched !== previousState.buttons[j].touched) {
213213
console.log(
214-
`Button ${bmap[j]} changed touched state. Value = ${state.buttons[j].touched}.`
214+
`Button ${bmap[j]} changed touched state. Value = ${state.buttons[j].touched}.`,
215215
);
216216
}
217217

218218
if (state.buttons[j].value !== previousState.buttons[j].value) {
219219
console.log(
220-
`Button ${bmap[j]} changed value state. Value = ${state.buttons[j].value}.`
220+
`Button ${bmap[j]} changed value state. Value = ${state.buttons[j].value}.`,
221221
);
222222
}
223223
}

0 commit comments

Comments
 (0)