Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class Event
Link copied to clipboard
interface EventHandler<E : Event>
Link copied to clipboard

Holds a map of event handlers by their EventType.

Link copied to clipboard
class EventType<E : Event>(val name: String)
Link copied to clipboard
enum Key : Enum<Key>

Each instance represents a physical key on a keyboard. i.e. a piece of plastic with one or more symbols printed on it, and a switch underneath ;-) Not be confused with a Character or a KeyCombination.

Link copied to clipboard

A KeyCombination (AKA keyboard shortcut), is a combination of a Key, and set of zero or more modifier keys (Shift, Control, Alt and Super).

Link copied to clipboard
class KeyEvent(val eventType: EventType<KeyEvent>, val key: Key, val scanCode: Int, val repeated: Boolean, val mods: Int) : Event

These events are fired when a key is pressed or released. Do not use these events to detect characters being typed (use KeyTypedEvent).

Link copied to clipboard
class KeyTypedEvent(val codePoint: Int) : Event

An event which is fired when a character has been typed.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class MouseEventBase(val scene: Scene, val sceneX: Float, val sceneY: Float, val mods: Int) : Event

The base class for MouseEvent and ScrollEvent.

Link copied to clipboard
class ResizeEvent(val oldWidth: Int, val oldHeight: Int, val width: Int, val height: Int) : Event
Link copied to clipboard
class ScrollEvent(scene: Scene, sceneX: Float, sceneY: Float, val deltaX: Float, val deltaY: Float, mods: Int) : MouseEventBase