aboutsummaryrefslogtreecommitdiff
path: root/intimate/src/keyboard.js
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-06-13 15:46:03 +0200
committerRaindropsSys <raindrops@equestria.dev>2024-06-13 15:46:03 +0200
commite44e2fe070484e06d384a31ef2699c3a2d5d474e (patch)
tree2d5eb5d1b01646270d18cf1f2d94519966d6e7de /intimate/src/keyboard.js
downloadfaunerie-e44e2fe070484e06d384a31ef2699c3a2d5d474e.tar.gz
faunerie-e44e2fe070484e06d384a31ef2699c3a2d5d474e.tar.bz2
faunerie-e44e2fe070484e06d384a31ef2699c3a2d5d474e.zip
GitHub migration
Diffstat (limited to 'intimate/src/keyboard.js')
-rwxr-xr-xintimate/src/keyboard.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/intimate/src/keyboard.js b/intimate/src/keyboard.js
new file mode 100755
index 0000000..26916bb
--- /dev/null
+++ b/intimate/src/keyboard.js
@@ -0,0 +1,11 @@
+window.onkeydown = (e) => {
+ console.log(e);
+ if (e.code === "Space") displayPause();
+ if (e.code === "Enter") displayPause();
+ if (e.code === "NumPadEnter") displayPause();
+
+ if (e.code === "ArrowLeft") skipImage();
+ if (e.code === "ArrowRight") skipImage();
+ if (e.code === "ArrowUp") skipImage();
+ if (e.code === "ArrowDown") skipImage();
+}