src/video/cocoa/SDL_cocoawindow.m
changeset 12201 8bdc4d340419
parent 12070 1d65571b57dd
child 12239 55489adbb75c
equal deleted inserted replaced
12200:c0b17b32b95e 12201:8bdc4d340419
   239 
   239 
   240 /* !!! FIXME: this should use a hint callback. */
   240 /* !!! FIXME: this should use a hint callback. */
   241 static int
   241 static int
   242 GetHintCtrlClickEmulateRightClick()
   242 GetHintCtrlClickEmulateRightClick()
   243 {
   243 {
   244 	return SDL_GetHintBoolean(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, SDL_FALSE);
   244     return SDL_GetHintBoolean(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, SDL_FALSE);
   245 }
   245 }
   246 
   246 
   247 static NSUInteger
   247 static NSUInteger
   248 GetWindowStyle(SDL_Window * window)
   248 GetWindowStyle(SDL_Window * window)
   249 {
   249 {
   906     }
   906     }
   907 
   907 
   908     switch ([theEvent buttonNumber]) {
   908     switch ([theEvent buttonNumber]) {
   909     case 0:
   909     case 0:
   910         if (([theEvent modifierFlags] & NSEventModifierFlagControl) &&
   910         if (([theEvent modifierFlags] & NSEventModifierFlagControl) &&
   911 		    GetHintCtrlClickEmulateRightClick()) {
   911             GetHintCtrlClickEmulateRightClick()) {
   912             wasCtrlLeft = YES;
   912             wasCtrlLeft = YES;
   913             button = SDL_BUTTON_RIGHT;
   913             button = SDL_BUTTON_RIGHT;
   914         } else {
   914         } else {
   915             wasCtrlLeft = NO;
   915             wasCtrlLeft = NO;
   916             button = SDL_BUTTON_LEFT;
   916             button = SDL_BUTTON_LEFT;