From 2297129a67d877c778ac7dbe33e22adb4f5c34b3 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Tue, 22 Oct 2002 22:57:12 +0000 Subject: New hardware key management svn-id: r5259 --- backends/wince/gapi_keys.cpp | 94 ++++++++++++++++++++++++++++++-------------- backends/wince/gapi_keys.h | 28 +++++++------ 2 files changed, 80 insertions(+), 42 deletions(-) diff --git a/backends/wince/gapi_keys.cpp b/backends/wince/gapi_keys.cpp index a4d2677573..c9999237bb 100644 --- a/backends/wince/gapi_keys.cpp +++ b/backends/wince/gapi_keys.cpp @@ -29,16 +29,21 @@ #include #include #include +#include "dynamic_imports.h" #include "gapi_keys.h" #include "screen.h" -struct oneAction _actions[NUMBER_ACTIONS]; +struct oneAction _actions[TOTAL_ACTIONS]; struct GXKeyList _portrait_keys; struct GXKeyList _landscape_keys; pAction *_action_functions; +void handleSelectGameUp(void); +void handleSelectGameDown(void); +void handleSelectGameButton(void); + const char* ActionsText[] = { "None", "Pause", @@ -54,10 +59,10 @@ const char* ActionsText[] = { "Boss" }; -bool _typeExists(int x) { +bool _typeExists(unsigned int x) { int i; - for (i=0; i