summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-06-30 13:31:14 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-06-30 13:31:14 +0000
commita8dab4c08af0e1d251ff633a2859c8b9b24efc7c (patch)
treebe8b66535d905e50319788f988f94ab008a48ba3 /uisimulator
parent058302a4807e14d564195de9825e3aa970ea68f9 (diff)
downloadrockbox-a8dab4c08af0e1d251ff633a2859c8b9b24efc7c.tar.gz
rockbox-a8dab4c08af0e1d251ff633a2859c8b9b24efc7c.tar.bz2
rockbox-a8dab4c08af0e1d251ff633a2859c8b9b24efc7c.zip
New screen dump feature for recorders
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4817 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/win32/button.c10
-rw-r--r--uisimulator/x11/button-x11.c10
2 files changed, 20 insertions, 0 deletions
diff --git a/uisimulator/win32/button.c b/uisimulator/win32/button.c
index c9bd1ad04e..4532727200 100644
--- a/uisimulator/win32/button.c
+++ b/uisimulator/win32/button.c
@@ -23,6 +23,7 @@
#include "button.h"
#include "kernel.h"
#include "backlight.h"
+#include "misc.h"
/* how long until repeat kicks in */
#define REPEAT_START 6
@@ -89,6 +90,15 @@ void button_event(int key, bool pressed)
case VK_SPACE:
new_btn = BUTTON_PLAY;
break;
+
+ case VK_NUMPAD0:
+ case VK_F5:
+ if(pressed)
+ {
+ screen_dump();
+ return;
+ }
+ break;
#else
case VK_RETURN:
new_btn = BUTTON_MENU;
diff --git a/uisimulator/x11/button-x11.c b/uisimulator/x11/button-x11.c
index eae55318ad..1b2c19232f 100644
--- a/uisimulator/x11/button-x11.c
+++ b/uisimulator/x11/button-x11.c
@@ -19,6 +19,7 @@
#include "button.h"
#include "kernel.h"
#include "debug.h"
+#include "misc.h"
#include "X11/keysym.h"
@@ -131,6 +132,15 @@ static int get_raw_button (void)
case XK_3:
k = BUTTON_F3;
break;
+
+ case XK_5:
+ if(!release)
+ {
+ screen_dump();
+ return 0;
+ }
+ break;
+
#else
case XK_KP_Add:
case XK_Q: