Skip to content

MouseScrollInput

data class MouseScrollInput(val mouseWheelRotation: Int) : IncomingGamePacket()
Example
on_input<MouseScrollInput> { player ->
val direction = if (mouseWheelRotation < 0) "in" else "out"
Logger.debug("${player.uuid} zooms $direction")
}
val mouseWheelRotation: Int