summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-09 14:56:54 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-09 14:56:54 +0100
commite03c36f2435c7b14b974d96d2081e608040a5f66 (patch)
tree025a4d149f19b8da8e9c5b86aac02c73ecb3eb01 /plugingui
parent6a1d23cf994844a39e5a1860c97276780903fb34 (diff)
Get up/down arrow keys also in win32.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/eventhandler.cc3
1 files changed, 3 insertions, 0 deletions
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;