Ticket #9172: sdl_map_keypad_divide_period.patch

File sdl_map_keypad_divide_period.patch, 542 bytes (added by Templier, 15 years ago)

Patch: add mapping for keypad period & divide

  • backends/platform/sdl/events.cpp

     
    5555                return key - SDLK_F1 + Common::ASCII_F1;
    5656        } else if (key >= SDLK_KP0 && key <= SDLK_KP9) {
    5757                return key - SDLK_KP0 + '0';
     58        } else if (key >= SDLK_KP_PERIOD && key <= SDLK_KP_DIVIDE) {
     59                return key - 220;
    5860        } else if (key >= SDLK_UP && key <= SDLK_PAGEDOWN) {
    5961                return key;
    6062        } else if (unicode) {