Browse Source

Misc

gh-pages
falkTX 10 years ago
parent
commit
6fb740038a
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      dgl/src/pugl/pugl_osx.m

+ 7
- 5
dgl/src/pugl/pugl_osx.m View File

@@ -416,12 +416,14 @@ puglProcessEvents(PuglView* view)
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSEvent* event;

static const NSUInteger eventMask = (NSMouseEnteredMask | NSMouseExitedMask | NSMouseMovedMask |
NSLeftMouseDraggedMask | NSRightMouseDraggedMask |
NSLeftMouseDownMask | NSLeftMouseUpMask |
static const NSUInteger eventMask = (NSLeftMouseDownMask | NSLeftMouseUpMask |
NSRightMouseDownMask | NSRightMouseUpMask |
NSScrollWheelMask | NSKeyDownMask | NSKeyUpMask |
NSFlagsChangedMask);
NSMouseMovedMask |
NSLeftMouseDraggedMask | NSRightMouseDraggedMask |
NSMouseEnteredMask | NSMouseExitedMask |
NSKeyDownMask | NSKeyUpMask |
NSFlagsChangedMask |
NSCursorUpdateMask | NSScrollWheelMask);

for (;;) {
event = [view->impl->window


Loading…
Cancel
Save