refactor(core): CORE-17 type input events and own interaction lifetimes

This commit is contained in:
Harvey Zhao committed 2026-09-11 11:24:15 +08:00
1 parent 88aef830df
commit a842058136
72 files changed
+31156 -1219

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import type { MoveHost, PointerRegistry } from '../input/pointer-types'
import { isClosing } from '../lifecycle/instance'
export default function moveInit(art: MoveHost, events: Pick<PointerRegistry, 'proxy'>): void {
const { $player } = art.template
events.proxy($player, 'mousemove', (event) => {
if (!isClosing(art))
art.emit('mousemove', event)
})
}