Zeropad/Win32: Make what appears to be a fairly significant bugfix, for what it's worth.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1596 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-08-02 18:46:39 +00:00
parent 3d87e4845a
commit 37b63f8a0c
1 changed files with 10 additions and 6 deletions

View File

@ -31,16 +31,20 @@
return -1; return -1;
} }
#ifdef _WINDOWS_
WORD toCharTemp;
#endif
char* KeysymToChar(int keysym) char* KeysymToChar(int keysym)
{ {
#ifdef __LINUX__ #ifdef __LINUX__
return XKeysymToString(keysym); return XKeysymToString(keysym);
#else #else
LPWORD temp; // fixed this to return *valid* results, and not some pointer
// to the fourth oblivion-- air
ToAscii((UINT) keysym, NULL, NULL, temp, NULL); ToAscii((UINT) keysym, NULL, NULL, &toCharTemp, NULL);
return (char*)temp; return (char*)(&toCharTemp);
#endif #endif
} }
void PollForKeyboardInput(int pad) void PollForKeyboardInput(int pad)