X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FWinInput.cpp;h=c13bb917b9f79c95939eee2550b218e5e176c171;hb=abf8445c6bae263c5a931e3c5693b7879e19df8e;hp=870774bf7be3986e38bdfe92cb29eb4558d0b0b4;hpb=f72996a73a2969a1bc8c53f2933ed50defdf1793;p=lugaru.git diff --git a/Source/WinInput.cpp b/Source/WinInput.cpp index 870774b..c13bb91 100644 --- a/Source/WinInput.cpp +++ b/Source/WinInput.cpp @@ -62,7 +62,7 @@ Boolean IsKeyDown( unsigned char *keyMap, unsigned short theKey ) } #if defined(_WIN32) -unsigned short CharToKey(char* which) +unsigned short CharToKey(const char* which) { // alphabetic keys if(!stricmp(which,"a")){ @@ -361,7 +361,7 @@ unsigned short CharToKey(char* which) return UNKNOWN_KEY; } #else -unsigned short CharToKey(char* which) +unsigned short CharToKey(const char* which) { // alphabetic keys if(!strcasecmp(which,"a")){ @@ -661,7 +661,7 @@ unsigned short CharToKey(char* which) } #endif -char* KeyToChar(unsigned short which) +const char* KeyToChar(unsigned short which) { static int i; @@ -1308,7 +1308,7 @@ char Shift(char which) return which; } -bool Compare(char *thestring, char *tocompare, int start, int end) +bool Compare(const char *thestring, const char *tocompare, int start, int end) { static int i; for(i=start;i<=end;i++){