refactor: joystick actions
This commit is contained in:
parent
8a004d67c0
commit
05d7b4097d
|
@ -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'),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user