refactor: joystick actions

This commit is contained in:
cha0s 2021-04-25 06:30:29 -05:00
parent 8a004d67c0
commit 05d7b4097d

View File

@ -79,13 +79,13 @@ export default class ActionRegistry extends decorate(Class) {
) {
this.#stream.push({
action,
value: this.transform(action, value * axis, transforming),
value: this.transform(action, value * axis, 'joystick'),
});
}
else if (0 === value) {
this.#stream.push({
action,
value: this.transform(action, value, transforming),
value: this.transform(action, value, 'joystick'),
});
}
}