src/video/quartz/SDL_QuartzEvents.m
branchSDL-1.2
changeset 3922 4e02435ad2be
parent 3914 4fd12011d8d6
child 3936 c5c3c772f5aa
equal deleted inserted replaced
3921:746aa4852f87 3922:4e02435ad2be
   273     }
   273     }
   274 
   274 
   275     if (numChars == 0) {
   275     if (numChars == 0) {
   276       
   276       
   277         key.scancode = [ event keyCode ];
   277         key.scancode = [ event keyCode ];
   278 printf("numChars == 0, scancode == %d\n", (int) key.scancode);
       
   279         key.sym      = keymap [ key.scancode ];
   278         key.sym      = keymap [ key.scancode ];
   280         key.unicode  = 0;
   279         key.unicode  = 0;
   281         key.mod      = KMOD_NONE;
   280         key.mod      = KMOD_NONE;
   282 
   281 
   283         SDL_PrivateKeyboard (state, &key);
   282         SDL_PrivateKeyboard (state, &key);
   284     }
   283     }
   285     else if (numChars == 1) {
   284     else if (numChars == 1) {
   286 
   285 
   287         key.scancode = [ event keyCode ];
   286         key.scancode = [ event keyCode ];
   288 printf("numChars == 1, scancode == %d\n", (int) key.scancode);
       
   289         key.sym      = keymap [ key.scancode ];
   287         key.sym      = keymap [ key.scancode ];
   290         key.unicode  = [ chars characterAtIndex:0 ];
   288         key.unicode  = [ chars characterAtIndex:0 ];
   291         key.mod      = KMOD_NONE;
   289         key.mod      = KMOD_NONE;
   292 
   290 
   293         SDL_PrivateKeyboard (state, &key);
   291         SDL_PrivateKeyboard (state, &key);