~nasser/lospec-2

63cd26ac05ffd3ef07f81809f386c07c1d62639a — Ramsey Nasser 6 months ago ec20672
Make axes input isometric
1 files changed, 2 insertions(+), 2 deletions(-)

M main.js
M main.js => main.js +2 -2
@@ 68,8 68,8 @@ function gamepad(now) {

function axes(now) {
    const axes = {
        horizontal: -now.gamepad.left + -now.gamepad.up + now.gamepad.right + now.gamepad.down,
        vertical: -now.gamepad.right + -now.gamepad.up + now.gamepad.left + now.gamepad.down
        horizontal: -now.gamepad.left + now.gamepad.right,
        vertical: -now.gamepad.up + now.gamepad.down
    }
    return { axes }
}