X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FWinInput.cpp;h=d42ae78ef310c4f73181e1772ed3f66ef14b9572;hb=cd46cab54acd39ff8c02b204844f1ce53fd2edbc;hp=513924d842e402c9fccd02ade679b155970842c5;hpb=9a5f2758e538d9216d255b4797f042a1b6874272;p=lugaru.git diff --git a/Source/WinInput.cpp b/Source/WinInput.cpp index 513924d..d42ae78 100644 --- a/Source/WinInput.cpp +++ b/Source/WinInput.cpp @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "WinInput.h" #ifdef WIN32 -#include "String.h" +#include #else #include #include @@ -61,7 +61,7 @@ Boolean IsKeyDown( unsigned char *keyMap, unsigned short theKey ) return 0; } -unsigned short CharToKey(char* which) +unsigned short CharToKey(const char* which) { // alphabetic keys if(!strcasecmp(which,"a")){ @@ -360,7 +360,7 @@ unsigned short CharToKey(char* which) return UNKNOWN_KEY; } -char* KeyToChar(unsigned short which) +const char* KeyToChar(unsigned short which) { static int i; @@ -1006,12 +1006,3 @@ char Shift(char which) } return which; } - -bool Compare(char *thestring, char *tocompare, int start, int end) -{ - static int i; - for(i=start;i<=end;i++){ - if(thestring[i]!=tocompare[i-start]&&thestring[i]!=tocompare[i-start]+'A'-'a')return 0; - } - return 1; -}