瀏覽代碼

* PageUp/PageDown support in X11.

tags/v0.99.beta14
Sam Hocevar sam 18 年之前
父節點
當前提交
311cd082e3
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      caca/driver_x11.c

+ 4
- 0
caca/driver_x11.c 查看文件

@@ -511,6 +511,10 @@ static int x11_get_event(caca_display_t *dp, caca_event_t *ev)
case XK_Right: ev->data.key.ch = CACA_KEY_RIGHT; break;
case XK_Up: ev->data.key.ch = CACA_KEY_UP; break;
case XK_Down: ev->data.key.ch = CACA_KEY_DOWN; break;
case XK_Page_Up: ev->data.key.ch = CACA_KEY_PAGEUP; break;
case XK_Page_Down: ev->data.key.ch = CACA_KEY_PAGEDOWN; break;
case XK_KP_Page_Up: ev->data.key.ch = CACA_KEY_PAGEUP; break;
case XK_KP_Page_Down: ev->data.key.ch = CACA_KEY_PAGEDOWN; break;

default: ev->type = CACA_EVENT_NONE; return 0;
}


Loading…
取消
儲存