From e03c36f2435c7b14b974d96d2081e608040a5f66 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 9 Mar 2013 14:56:54 +0100 Subject: Get up/down arrow keys also in win32. --- plugingui/eventhandler.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugingui') diff --git a/plugingui/eventhandler.cc b/plugingui/eventhandler.cc index 1dd629d..088380f 100644 --- a/plugingui/eventhandler.cc +++ b/plugingui/eventhandler.cc @@ -192,9 +192,12 @@ LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) case WM_KEYDOWN: { GUI::KeyEvent *e = new GUI::KeyEvent(); + //printf("wp: %d\n", wp); switch(wp) { case 37: e->keycode = GUI::KeyEvent::KEY_LEFT; break; case 39: e->keycode = GUI::KeyEvent::KEY_RIGHT; break; + case 38: e->keycode = GUI::KeyEvent::KEY_UP; break; + case 40: e->keycode = GUI::KeyEvent::KEY_DOWN; break; case 8: e->keycode = GUI::KeyEvent::KEY_BACKSPACE; break; case 46: e->keycode = GUI::KeyEvent::KEY_DELETE; break; case 36: e->keycode = GUI::KeyEvent::KEY_HOME; break; -- cgit v1.2.3