summaryrefslogtreecommitdiff
path: root/navit/graphics.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-06-16 20:39:09 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-06-16 20:39:09 +0000
commitd9f16207a1c246a377a0357cbeddb24db1921259 (patch)
tree7499505114e02a7ff7e9dce9a37634aa982be52d /navit/graphics.c
parent11f2f1fbb70283db69b15b86014e128d13ce88d5 (diff)
downloadnavit-d9f16207a1c246a377a0357cbeddb24db1921259.tar.gz
Add:gui_internal:Added key support
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1131 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.c')
-rw-r--r--navit/graphics.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/navit/graphics.c b/navit/graphics.c
index 5044b4ad2..38de40579 100644
--- a/navit/graphics.c
+++ b/navit/graphics.c
@@ -179,6 +179,16 @@ void graphics_register_motion_callback(struct graphics *this_, void (*callback)(
//# Comment:
//# Authors: Martin Schaller (04/2008)
//##############################################################################################################
+void graphics_register_keypress_callback(struct graphics *this_, void (*callback)(void *data, int key), void *data)
+{
+ this_->meth.register_keypress_callback(this_->priv, callback, data);
+}
+
+//##############################################################################################################
+//# Description:
+//# Comment:
+//# Authors: Martin Schaller (04/2008)
+//##############################################################################################################
struct graphics_font * graphics_font_new(struct graphics *gra, int size, int flags)
{
struct graphics_font *this_;