mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-25 03:56:55 +01:00
Fixed a bug in the virtual keyboard and removed a useless check
This commit is contained in:
parent
aa1bb0055c
commit
bf65a989fe
@ -1462,6 +1462,8 @@ static void input_options(int joy)
|
||||
virtualkey = virtkbd_get_key();
|
||||
if (virtualkey == NULL)
|
||||
return;
|
||||
if (virtualkey->ev_name == NULL)
|
||||
return;
|
||||
key = virtualkey->ev_name;
|
||||
|
||||
switch(opt)
|
||||
@ -1507,6 +1509,7 @@ static void virtual_keyboard(void)
|
||||
|
||||
virtkey_t *key =virtkbd_get_key();
|
||||
if (key) {key_code = key->sdl_code;} else return;
|
||||
if (!key_code) return;
|
||||
|
||||
SDL_Event event_key;
|
||||
|
||||
|
@ -125,11 +125,8 @@ static void read_joy (unsigned int nr)
|
||||
int bs = SDL_JoystickGetButton (joy, i) ? 1 : 0;
|
||||
setjoybuttonstate (nr, i, bs);
|
||||
#ifdef GEKKO
|
||||
if (!gui_is_active)
|
||||
{
|
||||
if ((nr==0) && (currprefs.rumble[0])) Rumble (0,i, bs);
|
||||
if ((nr==1) && (currprefs.rumble[1])) Rumble (1,i, bs);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user