Documentation
Event list
Core events
BeginFrame
- FrameNumber : unsigned
- TimeStep : float
Update
- TimeStep : float
PostUpdate
- TimeStep : float
RenderUpdate
- TimeStep : float
PostRenderUpdate
- TimeStep : float
EndFrame
Database events
DbCursor
- DbConnection : DbConnection pointer
- ResultImpl : Underlying result object pointer (cannot be used in scripting)
- SQL : String
- NumCols : unsigned
- ColValues : VariantVector
- ColHeaders : StringVector
- Filter : bool [in]
- Abort : bool [in]
Drawable events
BoneHierarchyCreated
- Node : Node pointer
AnimationTrigger
TerrainCreated
- Node : Node pointer
Engine events
ConsoleCommand
Graphics events
ScreenMode
- Width : int
- Height : int
- Fullscreen : bool
- Resizable : bool
- Borderless : bool
WindowPos
- X : int
- Y : int
RenderSurfaceUpdate
BeginRendering
EndRendering
BeginViewUpdate
- View : View pointer
- Texture : Texture pointer
- Surface : RenderSurface pointer
- Scene : Scene pointer
- Camera : Camera pointer
EndViewUpdate
- View : View pointer
- Texture : Texture pointer
- Surface : RenderSurface pointer
- Scene : Scene pointer
- Camera : Camera pointer
BeginViewRender
- View : View pointer
- Texture : Texture pointer
- Surface : RenderSurface pointer
- Scene : Scene pointer
- Camera : Camera pointer
EndViewRender
- View : View pointer
- Texture : Texture pointer
- Surface : RenderSurface pointer
- Scene : Scene pointer
- Camera : Camera pointer
DeviceLost
DeviceReset
IO events
LogMessage
- Message : String
- Level : int
AsyncExecFinished
- RequestID : unsigned
- ExitCode : int
Input events
MouseButtonDown
- Button : int
- Buttons : int
- Qualifiers : int
MouseButtonUp
- Button : int
- Buttons : int
- Qualifiers : int
MouseMove
- X : int (only when mouse visible)
- Y : int (only when mouse visible)
- DX : int
- DY : int
- Buttons : int
- Qualifiers : int
MouseWheel
- Wheel : int
- Buttons : int
- Qualifiers : int
KeyDown
- Key : int
- Scancode : int
- Raw : uint
- Buttons : int
- Qualifiers : int
- Repeat : bool
KeyUp
- Key : int
- Scancode : int
- Raw : uint
- Buttons : int
- Qualifiers : int
TextInput
- Text : String
- Buttons : int
- Qualifiers : int
JoystickConnected
- JoystickID : int
JoystickDisconnected
- JoystickID : int
JoystickButtonDown
- JoystickID : int
- Button : int
JoystickButtonUp
- JoystickID : int
- Button : int
JoystickAxisMove
- JoystickID : int
- Button : int
- Position : float
JoystickHatMove
- JoystickID : int
- Button : int
- Position : int
TouchBegin
- TouchID : int
- X : int
- Y : int
- Pressure : float
TouchEnd
- TouchID : int
- X : int
- Y : int
TouchMove
- TouchID : int
- X : int
- Y : int
- DX : int
- DY : int
- Pressure : float
GestureRecorded
- GestureID : unsigned
GestureInput
- GestureID : unsigned
- CenterX : int
- CenterY : int
- NumFingers : int
- Error : float
MultiGesture
- CenterX : int
- CenterY : int
- NumFingers : int
- DTheta : float (degrees)
- DDist : float
DropFile
- FileName : String
InputFocus
- Focus : bool
- Minimized : bool
MouseVisibleChanged
- Visible : bool
MouseModeChanged
- Mode : MouseMode
ExitRequested
Navigation events
NavigationMeshRebuilt
- Node : Node pointer
- Mesh : NavigationMesh pointer
NavigationAreaRebuilt
- Node : Node pointer
- Mesh : NavigationMesh pointer
- BoundsMin : Vector3
- BoundsMax : Vector3
CrowdAgentFormation
- Node : Node pointer
- CrowdAgent : CrowdAgent pointer
- Index : unsigned
- Size : unsigned
- Position : Vector3 [in/out]
CrowdAgentReposition
- Node : Node pointer
- CrowdAgent : CrowdAgent pointer
- Position : Vector3
- Velocity : Vector3
- Arrived : bool
- TimeStep : float
CrowdAgentFailure
- Node : Node pointer
- CrowdAgent : CrowdAgent pointer
- Position : Vector3
- Velocity : Vector3
- CrowdAgentState : int
- CrowdTargetState : int
CrowdAgentStateChanged
- Node : Node pointer
- CrowdAgent : CrowdAgent pointer
- Position : Vector3
- Velocity : Vector3
- CrowdAgentState : int
- CrowdTargetState : int
NavigationObstacleAdded
NavigationObstacleRemoved
Network events
ServerConnected
ServerDisconnected
ConnectFailed
ClientConnected
- Connection : Connection pointer
ClientDisconnected
- Connection : Connection pointer
ClientIdentity
- Connection : Connection pointer
- Allow : bool
ClientSceneLoaded
- Connection : Connection pointer
NetworkMessage
- Connection : Connection pointer
- MessageID : int
- Data : Buffer
NetworkUpdate
NetworkUpdateSent
NetworkSceneLoadFailed
- Connection : Connection pointer
RemoteEventData
- Connection : Connection pointer
Physics2D events
PhysicsPreStep2D
- World : PhysicsWorld2D pointer
- TimeStep : float
PhysicsPostStep2D
- World : PhysicsWorld2D pointer
- TimeStep : float
PhysicsBeginContact2D
- World : PhysicsWorld2D pointer
- BodyA : RigidBody2D pointer
- BodyB : RigidBody2D pointer
- NodeA : Node pointer
- NodeB : Node pointer
PhysicsEndContact2D
- World : PhysicsWorld2D pointer
- BodyA : RigidBody2D pointer
- BodyB : RigidBody2D pointer
- NodeA : Node pointer
- NodeB : Node pointer
Physics events
PhysicsPreStep
- World : PhysicsWorld pointer
- TimeStep : float
PhysicsPostStep
- World : PhysicsWorld pointer
- TimeStep : float
PhysicsCollisionStart
- World : PhysicsWorld pointer
- NodeA : Node pointer
- NodeB : Node pointer
- BodyA : RigidBody pointer
- BodyB : RigidBody pointer
- Trigger : bool
PhysicsCollision
- World : PhysicsWorld pointer
- NodeA : Node pointer
- NodeB : Node pointer
- BodyA : RigidBody pointer
- BodyB : RigidBody pointer
- Trigger : bool
PhysicsCollisionEnd
- World : PhysicsWorld pointer
- NodeA : Node pointer
- NodeB : Node pointer
- BodyA : RigidBody pointer
- BodyB : RigidBody pointer
- Trigger : bool
NodeCollisionStart
NodeCollision
NodeCollisionEnd
Resource events
ReloadStarted
ReloadFinished
ReloadFailed
FileChanged
LoadFailed
- ResourceName : String
ResourceNotFound
- ResourceName : String
UnknownResourceType
- ResourceType : StringHash
ResourceBackgroundLoaded
ChangeLanguage
Scene events
SceneUpdate
- Scene : Scene pointer
- TimeStep : float
SceneSubsystemUpdate
- Scene : Scene pointer
- TimeStep : float
UpdateSmoothing
- Constant : float
- SquaredSnapThreshold : float
SceneDrawableUpdateFinished
- Scene : Scene pointer
- TimeStep : float
TargetPositionChanged
TargetRotationChanged
AttributeAnimationUpdate
- Scene : Scene pointer
- TimeStep : float
AttributeAnimationAdded
AttributeAnimationRemoved
ScenePostUpdate
- Scene : Scene pointer
- TimeStep : float
AsyncLoadProgress
- Scene : Scene pointer
- Progress : float
- LoadedNodes : int
- TotalNodes : int
- LoadedResources : int
- TotalResources : int
AsyncLoadFinished
- Scene : Scene pointer
NodeAdded
NodeRemoved
ComponentAdded
ComponentRemoved
NodeNameChanged
NodeEnabledChanged
ComponentEnabledChanged
TemporaryChanged
- Serializable : Serializable pointer
InterceptNetworkUpdate
- Serializable : Serializable pointer
- TimeStamp : unsigned (0-255)
- Index : unsigned
- Name : String
- Value : Variant
UI events
UIMouseClick
- Element : UIElement pointer
- X : int
- Y : int
- Button : int
- Buttons : int
- Qualifiers : int
UIMouseClickEnd
- Element : UIElement pointer
- BeginElement : UIElement pointer
- X : int
- Y : int
- Button : int
- Buttons : int
- Qualifiers : int
UIMouseDoubleClick
- Element : UIElement pointer
- X : int
- Y : int
- Button : int
- Buttons : int
- Qualifiers : int
DragDropTest
DragDropFinish
FocusChanged
NameChanged
- Element : UIElement pointer
Resized
- Element : UIElement pointer
- Width : int
- Height : int
Positioned
- Element : UIElement pointer
- X : int
- Y : int
VisibleChanged
- Element : UIElement pointer
- Visible : bool
Focused
- Element : UIElement pointer
- ByKey : bool
Defocused
- Element : UIElement pointer
LayoutUpdated
- Element : UIElement pointer
Pressed
- Element : UIElement pointer
Released
- Element : UIElement pointer
Toggled
- Element : UIElement pointer
- State : bool
SliderChanged
- Element : UIElement pointer
- Value : float
SliderPaged
- Element : UIElement pointer
- Offset : int
- Pressed : bool
ScrollBarChanged
- Element : UIElement pointer
- Value : float
ViewChanged
- Element : UIElement pointer
- X : int
- Y : int
ModalChanged
- Element : UIElement pointer
- Modal : bool
CharEntry
TextChanged
TextFinished
MenuSelected
- Element : UIElement pointer
ItemSelected
- Element : UIElement pointer
- Selection : int
ItemDeselected
- Element : UIElement pointer
- Selection : int
SelectionChanged
- Element : UIElement pointer
ItemClicked
- Element : UIElement pointer
- Item : UIElement pointer
- Selection : int
- Button : int
- Buttons : int
- Qualifiers : int
ItemDoubleClicked
- Element : UIElement pointer
- Item : UIElement pointer
- Selection : int
- Button : int
- Buttons : int
- Qualifiers : int
UnhandledKey
- Element : UIElement pointer
- Key : int
- Buttons : int
- Qualifiers : int
FileSelected
MessageACK
- Ok : bool
ElementAdded
ElementRemoved
HoverBegin
- Element : UIElement pointer
- X : int
- Y : int
- ElementX : int
- ElementY : int
HoverEnd
- Element : UIElement pointer
DragBegin
- Element : UIElement pointer
- X : int
- Y : int
- ElementX : int
- ElementY : int
- Buttons : int
- NumButtons : int
DragMove
- Element : UIElement pointer
- X : int
- Y : int
- DX : int
- DY : int
- ElementX : int
- ElementY : int
- Buttons : int
- NumButtons : int
DragEnd
- Element : UIElement pointer
- X : int
- Y : int
- ElementX : int
- ElementY : int
- Buttons : int
- NumButtons : int
DragCancel
- Element : UIElement pointer
- X : int
- Y : int
- ElementX : int
- ElementY : int
- Buttons : int
- NumButtons : int