hotkey to activate neko interactions

This commit is contained in:
2026-01-05 16:40:27 +08:00
parent 96ba44613d
commit ca995899fe
5 changed files with 196 additions and 31 deletions

View File

@@ -3,6 +3,10 @@
import { onMount, onDestroy } from "svelte";
import { initCursorTracking, stopCursorTracking } from "../events/cursor";
import { initAppDataListener } from "../events/app-data";
import {
initSceneInteractiveListener,
stopSceneInteractiveListener,
} from "../events/scene-interactive";
let { children } = $props();
if (browser) {
@@ -10,6 +14,7 @@
try {
await initCursorTracking();
await initAppDataListener();
await initSceneInteractiveListener();
} catch (err) {
console.error("Failed to initialize event listeners:", err);
}
@@ -17,6 +22,7 @@
onDestroy(() => {
stopCursorTracking();
stopSceneInteractiveListener();
});
}
</script>