Platforms to show: All Mac Windows Linux Cross-Platform
NSEventMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS MacBase Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 50 properties
- property absoluteX as Integer
- property absoluteY as Integer
- property absoluteZ as Integer
- property associatedEventsMask as Integer
- property buttonMask as Integer
- property buttonNumber as Integer
- property capabilityMask as Integer
- property CGEventRef as Integer
- property characters as string
- property charactersIgnoringModifiers as string
- property clickCount as Integer
- property data1 as Integer
- property data2 as Integer
- property deltaX as Double
- property deltaY as Double
- property deltaZ as Double
- property description as string
- property deviceID as Integer
- property eventNumber as Integer
- property Handle as Integer
- property hasPreciseScrollingDeltas as boolean
- property isARepeat as boolean
- property isDirectionInvertedFromDevice as boolean
- property isEnteringProximity as boolean
- property keyCode as Integer
- property locationInWindow as NSPointMBS
- property magnification as Double
- property modifierFlags as Integer
- property pointingDeviceID as Integer
- property pointingDeviceSerialNumber as Integer
- property pointingDeviceType as Integer
- property pressure as Double
- property rotation as Double
- property scrollingDeltaX as Double
- property scrollingDeltaY as Double
- property stage as Integer
- property stageTransition as Double
- property subtype as Integer
- property systemTabletID as Integer
- property tabletID as Integer
- property tangentialPressure as Double
- property tilt as NSPointMBS
- property timestamp as Double
- property trackingNumber as Integer
- property type as Integer
- property uniqueID as UInt64
- property vendorID as Integer
- property vendorPointingDeviceType as Integer
- property window as NSWindowMBS
- property windowNumber as Integer
- 7 methods
- method allTouches as NSTouchMBS()
- method coalescedTouchesForTouch(touch as NSTouchMBS) as NSTouchMBS()
- method Constructor Private
- method predictedTouchesForTouch(touch as NSTouchMBS) as NSTouchMBS()
- method touchesForView(view as NSViewMBS) as NSTouchMBS()
- method touchesForWindow(win as NSWindowMBS) as NSTouchMBS()
- method touchesMatchingPhase(Phase as Integer, view as NSViewMBS = nil) as NSTouchMBS()
- 12 shared methods
- shared method doubleClickInterval as Double
- shared method eventWithCGEvent(CGEventRef as Integer) as NSEventMBS
- shared method isMouseCoalescingEnabled as boolean
- shared method keyEvent(Type as Integer, LocationX as Double, LocationY as Double, modifierFlags as Integer, timeStamp as double, windowNumber as Integer, characters as String, charactersIgnoringModifiers as String, isARepeat as boolean, keyCode as Integer) as NSEventMBS
- shared method keyRepeatDelay as Double
- shared method keyRepeatInterval as Double
- shared method modifierFlagsGlobal as UInt32
- shared method mouseEvent(Type as Integer, LocationX as Double, LocationY as Double, modifierFlags as Integer, timeStamp as double, windowNumber as Integer, eventNumber as Integer, clickCount as Integer, pressure as Single) as NSEventMBS
- shared method mouseLocation as NSPointMBS
- shared method otherEvent(Type as Integer, LocationX as Double, LocationY as Double, modifierFlags as Integer, timeStamp as double, windowNumber as Integer, SubType as Integer, Data1 as Integer, Data2 as Integer) as NSEventMBS
- shared method pressedMouseButtons as UInt32
- shared method setMouseCoalescingEnabled(Value as boolean)
- 161 constants
This class has no sub classes.
Some methods using this class:
- NSApplicationMBS.sendEvent(theEvent as NSEventMBS)
- NSClipViewMBS.autoscroll(theEvent as NSEventMBS) as boolean
- NSMenuMBS.popUpContextMenu(menu as NSMenuMBS, theEvent as NSEventMBS, view as NSViewMBS, font as NSFontMBS = nil)
- NSResponderMBS.endGestureWithEvent(e as NSEventMBS)
- NSResponderMBS.mouseExited(e as NSEventMBS)
- NSResponderMBS.rightMouseDown(e as NSEventMBS)
- NSResponderMBS.scrollWheel(e as NSEventMBS)
- NSResponderMBS.swipeWithEvent(e as NSEventMBS)
- NSResponderMBS.tabletProximity(e as NSEventMBS)
- NSWindowMBS.sendEvent(e as NSEventMBS)
Some properties using for this class:
- NSApplicationMBS.currentEvent as NSEventMBS
- NSWindowMBS.currentEvent as NSEventMBS
Some events using this class:
- CustomNSScrollerMBS.keyUp(e as NSEventMBS) as boolean
- CustomNSTextViewMBS.otherMouseDragged(e as NSEventMBS, x as Double, y as Double) as boolean
- CustomNSViewMBS.keyDown(e as NSEventMBS) as boolean
- DesktopAVCaptureViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- DesktopAVPlayerViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- NSSplitViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- NSTableControlMBS.OtherMouseUp(e as NSEventMBS) as boolean
- PDFThumbnailViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- PDFViewControlMBS.didCloseContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
- PHLivePhotoControlMBS.willShowContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS)
Some examples using this class:
- /Mac64bit/WebKit2/DesktopWebView
- /Mac64bit/WebKit2/WebView
- /MacBase/Custom NSWindows/NSWindow like AppStore/AppStore NSWindow
- /MacCocoa/Mouse Click & Keyboard Events
- /MacCocoa/NSStatusItem/StatusItem with NSView
- /MacCocoa/Text in titlebar
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Search Field/CustomSearchField with menu
- /MacFrameworks/CustomNSTextFieldMBS test
- /MacFrameworks/QuickLook/QuickLook Panel
Blog Entries
- News from the MBS Xojo Plugins Version 24.2
- MBS Xojo Plugins, version 24.2pr2
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.1
- MBS Xojo Plugins, version 24.1pr4
- MBS Xojo Plugins, version 24.1pr3
- MBS Xojo Plugins, version 23.5pr7
- News from the MBS Xojo Plugins Version 22.3
- MBS Xojo Plugins, version 22.3pr2
- MBS Xojo Plugins, version 18.2pr1
- Gestures on Mac OS X
Release notes
- Version 24.2
- Added touchesMatchingPhase, coalescedTouchesForTouch and predictedTouchesForTouch methods to NSEventMBS class.
- Version 24.1
- Enabled allTouches in NSEventMBS class for macOS.
- Fixed mouseEvent shared method in NSEventMBS to return NSEventMBS.
- Version 23.5
- Updated NSEventMBS class to work on iOS with UIEvent internally.
- Version 22.3
- Added shared methods for NSEventMBS class to create events.
- Version 18.2
- Added NSEventMBS.eventWithCGEvent function and NSEventMBS.CGEventRef property.
The items on this page are in the following plugins: MBS MacBase Plugin.
NSErrorMBS - NSEventMonitorMBS