]> git.jsancho.org Git - lugaru.git/blobdiff - Source/WinInput.cpp
Merge.
[lugaru.git] / Source / WinInput.cpp
index 870774bf7be3986e38bdfe92cb29eb4558d0b0b4..c13bb917b9f79c95939eee2550b218e5e176c171 100644 (file)
@@ -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++){