mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 19:39:24 +01:00
Bug 17: Don't allow joystick input while the menu or the virtual
keyboard is active
This commit is contained in:
parent
0d0fc5002c
commit
30775231b9
@ -934,6 +934,10 @@ uint8 C64::poll_joystick(int port)
|
|||||||
if (!has_event)
|
if (!has_event)
|
||||||
Gui::gui->pushJoystickEvent(EVENT_NONE);
|
Gui::gui->pushJoystickEvent(EVENT_NONE);
|
||||||
|
|
||||||
|
/* No joystick input when the Gui is active */
|
||||||
|
if (Gui::gui->is_active || Gui::gui->kbd)
|
||||||
|
return 0xff;
|
||||||
|
|
||||||
/* Handle keyboard codes */
|
/* Handle keyboard codes */
|
||||||
for (int i = 0; i < 0x51; i++)
|
for (int i = 0; i < 0x51; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user