Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
(Do not merge yet) KEYMAPPER: Fix virtual mouse bound in small rectangle in VKBD #2462
Without this PR, the virtual mouse, controlled via game controller analog stick, is stuck in a 320x200 top left rectangle when VKBD is displayed with graphics mode 2x in low res games like Dreamweb in-game. Note gfx mode 2x or higher has long been the default on almost all platforms that have at least 640x400 capability.
This bug is a consequence of g_gui.isActive() returning false when vkbd is being displayed (why is this?!?!). Due to this, the game resolution is used erroneously instead of the overlay resolution for clipping the virtual mouse.
This should be included for 2.2.0 Switch and Vita releases, otherwise VKBD is unusable in 320x200 games in docked Switch modes and VitaTV modes due to not being able to move the mouse pointer over the whole keyboard.
This is because the virtual keyboard is drawn directly on the overlay, instead of using the GUI. The