diff options
| author | Kostas Nakos | 2007-05-27 19:00:28 +0000 | 
|---|---|---|
| committer | Kostas Nakos | 2007-05-27 19:00:28 +0000 | 
| commit | 5543e61e403d79785b15d30bd6cbc49cc7e0939f (patch) | |
| tree | f8935980ebca6b15ffe52159d58a521551a23b56 /backends | |
| parent | c77a956e015d171d920f8acd19a7adf3e5af18a2 (diff) | |
| download | scummvm-rg350-5543e61e403d79785b15d30bd6cbc49cc7e0939f.tar.gz scummvm-rg350-5543e61e403d79785b15d30bd6cbc49cc7e0939f.tar.bz2 scummvm-rg350-5543e61e403d79785b15d30bd6cbc49cc7e0939f.zip | |
simplified code by moving key naming to the sdl port (where it belongs)
svn-id: r26978
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/platform/wince/CEDevice.cpp | 63 | ||||
| -rw-r--r-- | backends/platform/wince/CEDevice.h | 1 | 
2 files changed, 0 insertions, 64 deletions
| diff --git a/backends/platform/wince/CEDevice.cpp b/backends/platform/wince/CEDevice.cpp index 5a60c76bfe..fb2ad6f35c 100644 --- a/backends/platform/wince/CEDevice.cpp +++ b/backends/platform/wince/CEDevice.cpp @@ -154,66 +154,3 @@ bool CEDevice::isSmartphone() {  		return true;  	return (_wcsnicmp(platformType, TEXT("SmartPhone"), 10) == 0);  } - -Common::String CEDevice::getKeyName(unsigned int keyCode) { -	switch (keyCode) { -		case SDLK_F1: -			return "Softkey A"; -		case SDLK_F2: -			return "Softkey B"; -		case SDLK_F3: -			return "Talk"; -		case SDLK_F4: -			return "End"; -		case SDLK_APP1: -			return "Application 1"; -		case SDLK_APP2: -			return "Application 2"; -		case SDLK_APP3: -			return "Application 3"; -		case SDLK_APP4: -			return "Application 4"; -		case SDLK_APP5: -			return "Application 5"; -		case SDLK_APP6: -			return "Application 6"; -		case SDLK_LSUPER: -			return "Home"; -		case SDLK_ESCAPE: -			return "Back"; -		case SDLK_UP: -			return "Up"; -		case SDLK_DOWN: -			return "Down"; -		case SDLK_LEFT: -			return "Left"; -		case SDLK_RIGHT: -			return "Right"; -		case SDLK_RETURN: -			return "Action"; -		case SDLK_F10: -			return "Record"; -		case SDLK_F6: -			return "Volume Up"; -		case SDLK_F7: -			return "Volume Down"; -		case SDLK_F17: -			return "Flip"; -		case SDLK_F18: -			return "Power"; -		case SDLK_F16: -			return "Speaker"; -		case SDLK_F8: -			return "Star"; -		case SDLK_F9: -			return "Pound"; -		case SDLK_F11: -			return "Symbol"; -		case SDLK_F19: -			return "Red Key"; -		case 0: -			return "None"; -		default: -			return SDL_GetKeyName((SDLKey)keyCode); -	} -} diff --git a/backends/platform/wince/CEDevice.h b/backends/platform/wince/CEDevice.h index 4dd86f1619..15f3f2223c 100644 --- a/backends/platform/wince/CEDevice.h +++ b/backends/platform/wince/CEDevice.h @@ -39,7 +39,6 @@ class CEDevice {  		static bool hasWideResolution();  		static bool hasSmartphoneResolution();  		static bool isSmartphone(); -		static Common::String getKeyName(unsigned int keyCode);  	private:  		static DWORD reg_access(TCHAR *key, TCHAR *val, DWORD data); | 
