Lua
C++
Edit

Widget.MouseWheel

This function is called when the mouse wheel turns.

Syntax

function Widget:MouseWheel(delta, x, y)

Parameters

Remarks

This method is a protected virtual method. It can only be used by declaring it in a custom widget.

Example

-- CustomWidget.lua

CustomWidget = {}

function CustomWidget:MouseWheel(delta, x, y)
    -- code to handle mouse wheel event according to delta, x, and y
end
Copyright © 2024 Ultra Software.
All rights reserved.