comparison src/video/quartz/SDL_QuartzEvents.m @ 4230:2bb68bacdc54 SDL-1.2

Max correctly pointed out that this will cause unexpected change in application behavior and conflict with binding ctrl-click in some existing applications.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 22 Sep 2009 02:25:59 +0000
parents 6c1d2039b6b4
children 8fc98498e4f0
comparison
equal deleted inserted replaced
4229:68ee433ec474 4230:2bb68bacdc54
783 switch (type) { 783 switch (type) {
784 case NSLeftMouseDown: 784 case NSLeftMouseDown:
785 if ( SDL_getenv("SDL_HAS3BUTTONMOUSE") ) { 785 if ( SDL_getenv("SDL_HAS3BUTTONMOUSE") ) {
786 DO_MOUSE_DOWN (SDL_BUTTON_LEFT); 786 DO_MOUSE_DOWN (SDL_BUTTON_LEFT);
787 } else { 787 } else {
788 if ( NSControlKeyMask & current_mods ) { 788 if ( NSCommandKeyMask & current_mods ) {
789 last_virtual_button = SDL_BUTTON_RIGHT; 789 last_virtual_button = SDL_BUTTON_RIGHT;
790 DO_MOUSE_DOWN (SDL_BUTTON_RIGHT); 790 DO_MOUSE_DOWN (SDL_BUTTON_RIGHT);
791 } 791 }
792 else if ( NSAlternateKeyMask & current_mods ) { 792 else if ( NSAlternateKeyMask & current_mods ) {
793 last_virtual_button = SDL_BUTTON_MIDDLE; 793 last_virtual_button = SDL_BUTTON_MIDDLE;