From 311cd082e34e7f5ec96c536a8f51290b64ed725c Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 26 Apr 2006 12:48:41 +0000 Subject: [PATCH] * PageUp/PageDown support in X11. --- caca/driver_x11.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/caca/driver_x11.c b/caca/driver_x11.c index 2c7d06c..120546d 100644 --- a/caca/driver_x11.c +++ b/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; }