comparison src/video/quartz/SDL_QuartzEvents.m @ 4225:6c1d2039b6b4 SDL-1.2

Fixed bug #637 Switched right click emulation to be Ctrl-click, which matches Mac OS X
author Sam Lantinga <slouken@libsdl.org>
date Mon, 21 Sep 2009 11:32:58 +0000
parents a1b03ba2fcd0
children 2bb68bacdc54
comparison
equal deleted inserted replaced
4224:6637846f3f7f 4225:6c1d2039b6b4
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 ( NSCommandKeyMask & current_mods ) { 788 if ( NSControlKeyMask & 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;