onScroll(action: (delta: Vec2)=>void): KEventController
Register an event that runs when mouse wheel scrolled.// Zoom camera on scroll onScroll((delta) => { const zoom = delta.y / 500 camScale(camScale().add(zoom)) })
since
// Zoom camera on scroll onScroll((delta) => { const zoom = delta.y / 500 camScale(camScale().add(zoom)) })
since
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Level
Plugins
Button Bindings