Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoakeyboard.m @ 1961:f42f10fc309e
Removed debug code. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 30 Jul 2006 06:11:52 +0000 |
parents | 118daa3a24cc |
children | f419000e7596 |
comparison
equal
deleted
inserted
replaced
1960:118daa3a24cc | 1961:f42f10fc309e |
---|---|
528 switch ([event type]) { | 528 switch ([event type]) { |
529 case NSKeyDown: | 529 case NSKeyDown: |
530 if ([event isARepeat]) { | 530 if ([event isARepeat]) { |
531 break; | 531 break; |
532 } | 532 } |
533 printf("NSKeyDown: %x, %x\n", scancode, [event modifierFlags]); | |
534 SDL_SendKeyboardKey(data->keyboard, SDL_PRESSED, (Uint8)scancode, | 533 SDL_SendKeyboardKey(data->keyboard, SDL_PRESSED, (Uint8)scancode, |
535 data->keymap[scancode]); | 534 data->keymap[scancode]); |
536 text = [[event characters] UTF8String]; | 535 text = [[event characters] UTF8String]; |
537 if(text && *text) { | 536 if(text && *text) { |
538 SDL_SendKeyboardText(data->keyboard, text); | 537 SDL_SendKeyboardText(data->keyboard, text); |
539 } | 538 } |
540 break; | 539 break; |
541 case NSKeyUp: | 540 case NSKeyUp: |
542 printf("NSKeyUp: %x, %x\n", scancode, [event modifierFlags]); | |
543 SDL_SendKeyboardKey(data->keyboard, SDL_RELEASED, (Uint8)scancode, | 541 SDL_SendKeyboardKey(data->keyboard, SDL_RELEASED, (Uint8)scancode, |
544 data->keymap[scancode]); | 542 data->keymap[scancode]); |
545 break; | 543 break; |
546 case NSFlagsChanged: | 544 case NSFlagsChanged: |
547 printf("NSFlagsChanged: %x, %x\n", scancode, [event modifierFlags]); | |
548 HandleModifiers(_this, scancode, [event modifierFlags]); | 545 HandleModifiers(_this, scancode, [event modifierFlags]); |
549 break; | 546 break; |
550 } | 547 } |
551 } | 548 } |
552 | 549 |