#include "WinInput.h"
#ifdef WIN32
-#include "String.h"
+#include <string.h>
#else
#include <stdio.h>
#include <stdlib.h>
return 0;
}
-unsigned short CharToKey(char* which)
+unsigned short CharToKey(const char* which)
{
// alphabetic keys
if(!strcasecmp(which,"a")){
return UNKNOWN_KEY;
}
-char* KeyToChar(unsigned short which)
+const char* KeyToChar(unsigned short which)
{
static int i;
}
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;
-}