summaryrefslogtreecommitdiff
path: root/src/engine/systems/Input.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-02 01:34:19 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-02 01:34:19 -0700
commitcd6a3a56b0a9f27dd7250c7641776fe1bd184888 (patch)
treeb26c2731e39c63b748ac3bc76cc977419bae4746 /src/engine/systems/Input.ts
parent1ec5a8d088f599d094f387abc6014f228607b605 (diff)
downloadthe-abstraction-engine-cd6a3a56b0a9f27dd7250c7641776fe1bd184888.tar.gz
the-abstraction-engine-cd6a3a56b0a9f27dd7250c7641776fe1bd184888.zip
add modal interaction with code
Diffstat (limited to 'src/engine/systems/Input.ts')
-rw-r--r--src/engine/systems/Input.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/systems/Input.ts b/src/engine/systems/Input.ts
index df4d651..3da018d 100644
--- a/src/engine/systems/Input.ts
+++ b/src/engine/systems/Input.ts
@@ -52,6 +52,9 @@ export class Input extends System {
}
interactable.interact();
+ KeyConstants.ActionKeys.get(Action.INTERACT)!.forEach((key) =>
+ this.keyReleased(key),
+ );
}
public handleMovement(entity: Entity) {