Replies: 4 comments 1 reply
-
I did some initial investigation - to see what happens if the window gets focus due to mouse click inside. Unfortunately, on my Linux system, sometimes I am getting SDL_MOUSEBUTTONDOWN event from SDL, and sometimes not. Could you create a PR? I intend to investigate it, but probably not for 0.81.0. [edit] Checked with DOSBox-X with seamless mouse enabled - and sometimes the event is passed to the guest side software, sometimes it isn't. Might be OS dependent, window manager dependent, etc. |
Beta Was this translation helpful? Give feedback.
-
… and on Windows 11 I am never getting the event if window has no focus when clicking inside. [edit] I think I have a solution, but I'm too tired to test this on Windows today: https://github.com/dosbox-staging/dosbox-staging/tree/fc/seamless-mouse-capture-event-1 |
Beta Was this translation helpful? Give feedback.
-
PR created - #3296. Actually, it is enough to provide one hint to SDL library. |
Beta Was this translation helpful? Give feedback.
-
Tested the fix, it works, thanks @FeralChild64! |
Beta Was this translation helpful? Give feedback.
-
vbmouse.exe in Staging - you have to get the Staging window in focus first (e.g. by clicking onto it) and only the clicks afterwards propagate to the DOS program (?)
Originally posted by @Torinde in joncampbell123/dosbox-x#3384 (comment)
In DOSbox-X with its built-in mouse driver the first click (which gets the window in focus) is also propagated to the DOS program.
Beta Was this translation helpful? Give feedback.
All reactions