summaryrefslogtreecommitdiff
path: root/plugingui/eventhandler.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-13 18:46:17 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-13 18:46:17 +0100
commitd55de707c3352a468a227d69920a56ef2550a7cc (patch)
tree3f7ac91962d7e09328fb24d4eb52707a3f6e7f22 /plugingui/eventhandler.cc
parentc17046353762a0893914e671f1f19eadce6f94f5 (diff)
Added path lineedit and drive selection (win32) to filebrowser. Made a lot of small layout tweaks.
Diffstat (limited to 'plugingui/eventhandler.cc')
-rw-r--r--plugingui/eventhandler.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugingui/eventhandler.cc b/plugingui/eventhandler.cc
index b971b15..017434e 100644
--- a/plugingui/eventhandler.cc
+++ b/plugingui/eventhandler.cc
@@ -122,10 +122,6 @@ LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
last_x = e->x;
last_y = e->y;
-
- // xPos = (int)(short) LOWORD(lp);
- // yPos = (int)(short) HIWORD(lp);
- // fwKeys = wp;
}
break;
@@ -202,6 +198,9 @@ LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
case 46: e->keycode = GUI::KeyEvent::KEY_DELETE; break;
case 36: e->keycode = GUI::KeyEvent::KEY_HOME; break;
case 35: e->keycode = GUI::KeyEvent::KEY_END; break;
+ case 33: e->keycode = GUI::KeyEvent::KEY_PGUP; break;
+ case 34: e->keycode = GUI::KeyEvent::KEY_PGDOWN; break;
+ case 13: e->keycode = GUI::KeyEvent::KEY_ENTER; break;
default: e->keycode = GUI::KeyEvent::KEY_UNKNOWN; break;
}
e->text = "";
@@ -212,7 +211,7 @@ LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
case WM_CHAR:
{
- printf("WM_CHAR %d %d\n", (int)lp, (int)wp);
+ //printf("WM_CHAR %d %d\n", (int)lp, (int)wp);
if(wp >= ' ') { // Filter control chars.
GUI::KeyEvent *e = new GUI::KeyEvent();
e->keycode = GUI::KeyEvent::KEY_CHARACTER;
@@ -356,7 +355,7 @@ GUI::Event *GUI::EventHandler::getNextEvent()
}
if(xe.type == KeyPress || xe.type == KeyRelease) {
- // printf("key: %d\n", xe.xkey.keycode);
+ //printf("key: %d\n", xe.xkey.keycode);
KeyEvent *e = new KeyEvent();
e->window_id = xe.xkey.window;
@@ -369,6 +368,9 @@ GUI::Event *GUI::EventHandler::getNextEvent()
case 22: e->keycode = KeyEvent::KEY_BACKSPACE; break;
case 110: e->keycode = KeyEvent::KEY_HOME; break;
case 115: e->keycode = KeyEvent::KEY_END; break;
+ case 117: e->keycode = KeyEvent::KEY_PGDOWN; break;
+ case 112: e->keycode = KeyEvent::KEY_PGUP; break;
+ case 36: e->keycode = KeyEvent::KEY_ENTER; break;
default: e->keycode = KeyEvent::KEY_UNKNOWN; break;
}