]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/evtloop.mm
Use UTF-8 for all non-ASCII characters in the sources.
[wxWidgets.git] / src / osx / cocoa / evtloop.mm
index 92f08d178ec0fe42ea62e41938cc94cf26f006be..795a05f9b762fb54e48bd79d16a180644e722052 100644 (file)
 // wxEventLoop implementation
 // ============================================================================
 
+/*
+static int CalculateNSEventMaskFromEventCategory(wxEventCategory cat)
+{
+       NSLeftMouseDownMask     |
+       NSLeftMouseUpMask |
+       NSRightMouseDownMask |
+       NSRightMouseUpMask              = 1 << NSRightMouseUp,
+       NSMouseMovedMask                = 1 << NSMouseMoved,
+       NSLeftMouseDraggedMask          = 1 << NSLeftMouseDragged,
+       NSRightMouseDraggedMask         = 1 << NSRightMouseDragged,
+       NSMouseEnteredMask              = 1 << NSMouseEntered,
+       NSMouseExitedMask               = 1 << NSMouseExited,
+        NSScrollWheelMask              = 1 << NSScrollWheel,
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
+       NSTabletPointMask               = 1 << NSTabletPoint,
+       NSTabletProximityMask           = 1 << NSTabletProximity,
+#endif
+       NSOtherMouseDownMask            = 1 << NSOtherMouseDown,
+       NSOtherMouseUpMask              = 1 << NSOtherMouseUp,
+       NSOtherMouseDraggedMask         = 1 << NSOtherMouseDragged,
+
+
+
+       NSKeyDownMask                   = 1 << NSKeyDown,
+       NSKeyUpMask                     = 1 << NSKeyUp,
+       NSFlagsChangedMask              = 1 << NSFlagsChanged,
+
+       NSAppKitDefinedMask             = 1 << NSAppKitDefined,
+       NSSystemDefinedMask             = 1 << NSSystemDefined,
+       NSApplicationDefinedMask        = 1 << NSApplicationDefined,
+       NSPeriodicMask                  = 1 << NSPeriodic,
+       NSCursorUpdateMask              = 1 << NSCursorUpdate,
+
+       NSAnyEventMask                  = 0xffffffffU
+}
+*/
+
 wxGUIEventLoop::wxGUIEventLoop()
 {
     m_sleepTime = 0.0;