← Back to carmenta.com
Carmenta Engine SDK Documentation
×

ITool.OnMouseWheel Method

Called when the mouse wheel is moved.

Thread safety: This method does not have to be thread-safe, it will only be called by Carmenta Engine from the GUI thread.

OnMouseWheel(System.Int32 delta, System.Int32 x, System.Int32 y, System.Boolean shift, System.Boolean ctrl, System.Boolean alt)

Called when the mouse wheel is moved.

Syntax

C#
public System.Boolean OnMouseWheel (
    System.Int32 delta,
    System.Int32 x,
    System.Int32 y,
    System.Boolean shift,
    System.Boolean ctrl,
    System.Boolean alt
)

Parameters

delta
Type: System.Int32
The amount that the mouse wheel has moved.
x
Type: System.Int32
The x coordinate of the mouse when the wheel was used.
y
Type: System.Int32
The y coordinate of the mouse when the wheel was used.
shift
Type: System.Boolean
True if the SHIFT key was pressed.
ctrl
Type: System.Boolean
True if the CTRL key was pressed.
alt
Type: System.Boolean
True if the ALT key was pressed.

Return Value

Type: System.Boolean
True if the tool handles the event; False otherwise.

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept