From defb23ffd51323b9cf561a6e5d7725c9926c1546 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 20 Oct 2008 23:03:53 +0200 Subject: [PATCH] Remove keymap change interface. Remove keymap change interface. User won't have access to it anyway. --- src/main/symbian/SDL_main.cpp | 30 ------------------------------ symbian/include/sdlepocapi.h | 4 ---- 2 files changed, 34 deletions(-) diff --git a/src/main/symbian/SDL_main.cpp b/src/main/symbian/SDL_main.cpp index ce37687..9abcd69 100644 --- a/src/main/symbian/SDL_main.cpp +++ b/src/main/symbian/SDL_main.cpp @@ -18,9 +18,6 @@ extern "C" { #include #include -extern SDLKey* KeyMap(); -extern void ResetKeyMap(); - class CCurrentAppUi; class CEikonEnv; class CSdlAppServ; @@ -615,33 +612,6 @@ void CSDL::SDLPanic(const TDesC& aInfo, int aErr) EpocSdlEnv::PanicMain(aInfo, aErr); } -int CSDL::GetSDLCode(int aScanCode) -{ - if(aScanCode < 0) - return MAX_SCANCODE; - if(aScanCode >= MAX_SCANCODE) - return -1; - return KeyMap()[aScanCode]; -} - -int CSDL::SDLCodesCount() const -{ - return MAX_SCANCODE; -} - -void CSDL::ResetSDLCodes() -{ - ResetKeyMap(); -} - -int CSDL::SetSDLCode(int aScanCode, int aSDLCode) -{ - const int current = GetSDLCode(aScanCode); - if(aScanCode >= 0 && aScanCode < MAX_SCANCODE) - KeyMap()[aScanCode] = static_cast(aSDLCode); - return current; -} - void CSDL::Resize() { if(gEpocEnv->iWaitingForOrientationChange) diff --git a/symbian/include/sdlepocapi.h b/symbian/include/sdlepocapi.h index 83ec9fc..d6f461b 100644 --- a/symbian/include/sdlepocapi.h +++ b/symbian/include/sdlepocapi.h @@ -55,10 +55,6 @@ class CSDL : public CBase, public MRemConCoreApiTargetObserver void SetContainerWindowL(RWindow& aWindow, RWsSession& aSession, CWsScreenDevice& aDevice); //the window where drawn happens, should be recalled (propably in application HandleResourceChange) if screen device changes ~CSDL(); void AppendWsEvent(const TWsEvent& aEvent); //give event to SDL - TInt GetSDLCode(TInt aScanCode); //get SDL internal key code bind to given scancode, return -1 if scancode is not found, aScancode must be postive number - TInt SetSDLCode(TInt aScanCode, TInt aSDLCode); //set internal SDL code with given key code, return replaced code - TInt SDLCodesCount() const; //return count of scancodes - void ResetSDLCodes(); //rest all code replacement to their initial values void SDLPanic(const TDesC& aInfo, TInt aErr); //Panic from SDL thread (see SDLThreadEvent) TThreadId CallMainL(const TMainFunc& aFunc, TRequestStatus* const aStatus, const CDesC8Array* const iArg); //internal void Resize(); -- 2.11.4.GIT