Ignore:
Timestamp:
Apr 26, 2006, 2:57:31 PM (15 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • removed duplicate code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_x11.c

    r908 r909  
    512512            case XK_Up:    ev->data.key.ch = CACA_KEY_UP;    break;
    513513            case XK_Down:  ev->data.key.ch = CACA_KEY_DOWN;  break;
     514            case XK_KP_Page_Up:
    514515            case XK_Page_Up:      ev->data.key.ch = CACA_KEY_PAGEUP;   break;
     516            case XK_KP_Page_Down:
    515517            case XK_Page_Down:    ev->data.key.ch = CACA_KEY_PAGEDOWN; break;
     518            case XK_KP_Home:
    516519            case XK_Home:         ev->data.key.ch = CACA_KEY_HOME;     break;
     520            case XK_KP_End:
    517521            case XK_End:          ev->data.key.ch = CACA_KEY_END;      break;
    518             case XK_KP_Page_Up:   ev->data.key.ch = CACA_KEY_PAGEUP;   break;
    519             case XK_KP_Page_Down: ev->data.key.ch = CACA_KEY_PAGEDOWN; break;
    520             case XK_KP_Home:      ev->data.key.ch = CACA_KEY_HOME;     break;
    521             case XK_KP_End:       ev->data.key.ch = CACA_KEY_END;      break;
    522522
    523523            default: ev->type = CACA_EVENT_NONE; return 0;
Note: See TracChangeset for help on using the changeset viewer.