Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSEventMBS.doubleClickInterval as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the time, in seconds, in which a second mouse click must occur in order to be considered a double click.
Notes:
This is a system setting, overriding this method will have no effect.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSEventMBS.eventWithCGEvent(CGEventRef as Integer) as NSEventMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 18.2 Yes No No Yes, macOS only No
Function: Creates and returns an event object that is based on a Core Graphics type of event.
Notes: The returned object retains the CGEventRef object (cgEvent) until it (the Xojo and Objective-C object) is freed—it then releases the CGEventRef object. If no Cocoa event corresponds to the CGEventRef object, this method returns nil.

Feedback, Comments & Corrections

NSEventMBS.isMouseCoalescingEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Indicates whether mouse-movement event coalescing is enabled.
Notes: Available in Mac OS X v10.5 and later.

Feedback, Comments & Corrections

NSEventMBS.keyRepeatDelay as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the length of time a key must be held down in order to generate the first key repeat event.
Notes:
This is a system setting, overriding this method will have no effect.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSEventMBS.keyRepeatInterval as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the length between subsequent key repeat events being posted.
Notes:
This is a system setting, overriding this method will have no effect.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSEventMBS.modifierFlagsGlobal as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the currently pressed modifier flags.
Notes:
This returns the state of devices combined with synthesized events at the moment, independent of which events have been delivered via the event stream.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSEventMBS.mouseLocation as NSPointMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 9.1 Yes No No Yes, macOS only No
Function: Reports the current mouse position in screen coordinates.
Notes:
This method is similar to the NSWindow method mouseLocationOutsideOfEventStream. It returns the location regardless of the current event or pending events. The difference between these methods is that mouseLocationOutsideOfEventStream returns a point in the receiving window's coordinates and mouseLocation returns the same information in screen coordinates.

Note: The y coordinate in the returned point starts from a base of 1, not 0.

Feedback, Comments & Corrections

NSEventMBS.pressedMouseButtons as UInt32
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the indices of the currently depressed mouse buttons.
Notes:
The indices of the currently depressed mouse buttons.

A return value of 1 << 0 corresponds to left the mouse, 1 << 1 corresponds to the right mouse, 1<< n, n >=2 to other mouse buttons.

This returns the state of devices combined with synthesized events at the moment, independent of which events have been delivered via the event stream, so this method is not suitable for tracking.

Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSEventMBS.setMouseCoalescingEnabled(Value as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Whether mouse-movement event coalescing is enabled.
Notes:
This method affects mouse-moved, mouse-dragged, and tablet events. Mouse-movement event coalescing is enabled by default.

Available in Mac OS X v10.5 and later.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacBase Plugin.




Links
MBS Xojo Plugins