Ticket #3013: macosx-azerty-fix.patch

File macosx-azerty-fix.patch, 706 bytes (added by fingolfin, 17 years ago)

Fix for SDL

  • src/video/quartz/SDL_QuartzEvents.m

     
    224224        }
    225225    }
    226226
     227    keymap[QZ_1] = SDLK_1;
     228    keymap[QZ_2] = SDLK_2;
     229    keymap[QZ_3] = SDLK_3;
     230    keymap[QZ_4] = SDLK_4;
     231    keymap[QZ_5] = SDLK_5;
     232    keymap[QZ_6] = SDLK_6;
     233    keymap[QZ_7] = SDLK_7;
     234    keymap[QZ_8] = SDLK_8;
     235    keymap[QZ_9] = SDLK_9;
     236    keymap[QZ_0] = SDLK_0;
     237
    227238    /*
    228239        The keypad codes are re-setup here, because the loop above cannot
    229240        distinguish between a key on the keypad and a regular key. We maybe