longjunyu2 / winlator

Android application for running Windows applications with Wine and Box86/Box64
https://winlator.org
Other
302 stars 38 forks source link

[BUG] Input working in UI but not work in game #104

Closed vedmysh closed 2 months ago

vedmysh commented 2 months ago

Device Information

Application Configuration Information

Description of the Issue After starting container Input Controls works - for example selecting RTS profile and clicking any keys produce apropriate output. But after game start (tested on Witcher 3 and Dying Light) it looks like no "keypress" propogated to the game.

longjunyu2 commented 2 months ago

@vedmysh

I tested The Witcher 3, and I don't have this issue. Please check if you used VirtualGamepad before RTS, or if your device is connected to a game controller.

If it's the former, please avoid using VirtualGamepad, as the game will think you're using a game controller. If it's the latter, please disconnect the controller or ensure that Enable XInput and Enable DInput are not checked.

vedmysh commented 2 months ago

Started container. Selected Virtual Gamepad. It works - at least it works in the contol panel\input devices\xinput tab - i see axis movement and keypress. Now starting the game. It shows some text and ask to press X. I press X many times, but nothing happends. So the symptoms are same no matter what virtual onscreen mapping I use...

Do you test it on the same ASUS ROG Phone 8 Pro? No special settings?

longjunyu2 commented 2 months ago

@vedmysh try setting Startup Selection to Aggressive

vedmysh commented 2 months ago

@vedmysh try setting Startup Selection to Aggressive

This helps (Startup selections option)! Tested in Dying Light. Thank you!

roninspin commented 1 month ago

I have the same problem (both virtual and physical gamepad). Wine's "Game Controllers" indicates axes and buttons when I press them, but all my games don't react at all. The strange thing is that a couple of months ago I installed winlator 7.1.2 glibc (IIRC) and it worked then. Now I've tried different Winlator versions (with clean installation, too), different settings, Nothing works. P.S. My controller works in games when I use wine in chroot, Nubia Red Magic 6. Android 12.