Release v0.1.6 2026-07-12
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useEffect, useRef } from "react";
|
||||
import { subscribeControllerToken } from "../input/controller";
|
||||
import { ABILITY_ORDER } from "./data";
|
||||
import { useGameStore } from "./store";
|
||||
import { isRunBuffInputLocked, useGameStore } from "./store";
|
||||
import type { AbilityId } from "./types";
|
||||
|
||||
function cycleRunBuff(direction: 1 | -1) {
|
||||
@@ -43,6 +43,7 @@ export function useActionBindings(enabled = true, onExit?: () => void) {
|
||||
}
|
||||
if (store.phase === "intermission") {
|
||||
if (["arrowleft", "arrowup", "arrowright", "arrowdown", "enter"].includes(key)) event.preventDefault();
|
||||
if (isRunBuffInputLocked(store)) return;
|
||||
if (key === "arrowleft" || key === "arrowup") cycleRunBuff(-1);
|
||||
if (key === "arrowright" || key === "arrowdown") cycleRunBuff(1);
|
||||
if (key === "enter") {
|
||||
@@ -99,6 +100,7 @@ export function useActionBindings(enabled = true, onExit?: () => void) {
|
||||
return;
|
||||
}
|
||||
if (store.phase === "intermission") {
|
||||
if (isRunBuffInputLocked(store)) return;
|
||||
if (["Button12", "Button14", "Axis0-", "Axis1-"].includes(token)) cycleRunBuff(-1);
|
||||
if (["Button13", "Button15", "Axis0+", "Axis1+"].includes(token)) cycleRunBuff(1);
|
||||
if (!repeat && token === "Button0") {
|
||||
|
||||
Reference in New Issue
Block a user