mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-17 11:34:18 +01:00
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:
1 parent
3d87e4845a
commit
37b63f8a0c
1 file changed
+10
-6
@@ -31,16 +31,20 @@
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef _WINDOWS_
|
||||
WORD toCharTemp;
|
||||
#endif
|
||||
|
||||
char* KeysymToChar(int keysym)
|
||||
{
|
||||
#ifdef __LINUX__
|
||||
#ifdef __LINUX__
|
||||
return XKeysymToString(keysym);
|
||||
#else
|
||||
LPWORD temp;
|
||||
|
||||
ToAscii((UINT) keysym, NULL, NULL, temp, NULL);
|
||||
return (char*)temp;
|
||||
#endif
|
||||
// fixed this to return *valid* results, and not some pointer
|
||||
// to the fourth oblivion-- air
|
||||
ToAscii((UINT) keysym, NULL, NULL, &toCharTemp, NULL);
|
||||
return (char*)(&toCharTemp);
|
||||
#endif
|
||||
}
|
||||
|
||||
void PollForKeyboardInput(int pad)
|
||||
|
||||
Reference in new issue
Block a user