Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
Line 106: | Line 106: | ||
== Mouse events == | == Mouse events == | ||
NPCocoaEventMouseDown - Fired when a mouse button is pressed | * NPCocoaEventMouseDown - Fired when a mouse button is pressed | ||
NPCocoaEventMouseUp - Fired when a mouse button is released | * NPCocoaEventMouseUp - Fired when a mouse button is released | ||
NPCocoaEventMouseMoved - Fired when the mouse is moved | * NPCocoaEventMouseMoved - Fired when the mouse is moved | ||
NPCocoaEventMouseEntered - Fired when the mouse enters the plug-in area. | * NPCocoaEventMouseEntered - Fired when the mouse enters the plug-in area. | ||
NPCocoaEventMouseExited - Fired when the mouse exits the plug-in area. | * NPCocoaEventMouseExited - Fired when the mouse exits the plug-in area. | ||
NPCocoaEventMouseDragged - Fired when the mouse is moved with a mouse button pressed. This will fire even if the mouse is moved outside of the plug-in area. | * NPCocoaEventMouseDragged - Fired when the mouse is moved with a mouse button pressed. This will fire even if the mouse is moved outside of the plug-in area. | ||
NPCocoaEventScrollWheel - Fired when the mouse's scroll wheel has moved. | * NPCocoaEventScrollWheel - Fired when the mouse's scroll wheel has moved. | ||
double pluginX; | |||
The X position of the mouse cursor, in the plug-in's coordinate system. | The X position of the mouse cursor, in the plug-in's coordinate system. | ||
double pluginY; | double pluginY; | ||
The Y position of the mouse cursor, in the plug-in's coordinate system. | The Y position of the mouse cursor, in the plug-in's coordinate system. | ||
int32 buttonNumber; | int32 buttonNumber; | ||
The button number of the mouse button that generated the mouse event. | The button number of the mouse button that generated the mouse event. | ||
int32 clickCount; | int32 clickCount; | ||
The number of mouse clicks associated with the event. | The number of mouse clicks associated with the event. | ||
double deltaX; | double deltaX; | ||
double deltaY; | double deltaY; | ||
double deltaZ; | double deltaZ; | ||
The X, Y or Z coordinate change for a scroll wheel, mouse-move, or mouse-drag event. | The X, Y or Z coordinate change for a scroll wheel, mouse-move, or mouse-drag event. | ||