mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 15:31:17 +01:00
Make arrow and home keys work in wiimote emulator.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4967 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8fdc293328
commit
36a5015bc0
@ -121,6 +121,9 @@ KeySym wxCharCodeWXToX(int id)
|
|||||||
void XKeyToString(unsigned int keycode, char *keyStr) {
|
void XKeyToString(unsigned int keycode, char *keyStr) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
|
|
||||||
|
case XK_Home:
|
||||||
|
sprintf(keyStr, "HOME");
|
||||||
|
break;
|
||||||
case XK_Left:
|
case XK_Left:
|
||||||
sprintf(keyStr, "LEFT");
|
sprintf(keyStr, "LEFT");
|
||||||
break;
|
break;
|
||||||
|
@ -741,6 +741,7 @@ void ReadLinuxKeyboard()
|
|||||||
XGetWindowAttributes (E.xmotion.display, E.xmotion.window, &WinAttribs);
|
XGetWindowAttributes (E.xmotion.display, E.xmotion.window, &WinAttribs);
|
||||||
MousePos.WinWidth = WinAttribs.width;
|
MousePos.WinWidth = WinAttribs.width;
|
||||||
MousePos.WinHeight = WinAttribs.height;
|
MousePos.WinHeight = WinAttribs.height;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -303,11 +303,13 @@ bool IsKey(int Key)
|
|||||||
{
|
{
|
||||||
int MapKey = WiiMapping[g_ID].Button[Key];
|
int MapKey = WiiMapping[g_ID].Button[Key];
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
if (MapKey < 256)
|
if (MapKey < 256)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
|
||||||
Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows)
|
Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows)
|
||||||
#else
|
#else
|
||||||
|
if (MapKey < 256 || (MapKey >= 0xff50 && MapKey <= 0xff54))
|
||||||
|
{
|
||||||
Ret = KeyStatus[Key]; // Keyboard (Linux)
|
Ret = KeyStatus[Key]; // Keyboard (Linux)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user