Views: 31,691,891 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 06-08-26 08:31 PM
Guest:

0 users reading Keyboard/Mouse incompatibility with more than one emulator | 1 bot

Main - Compatibility / Testing - Keyboard/Mouse incompatibility with more than one emulator Hide post layouts | New reply


LEGO_Vince
Posted on 07-07-24 04:10 AM Link | #6800
I was testing out Mario Party DS about an hour ago, and I realized an issue that's unique to DS emulation...

Even if you have two functioning Mice (programs like MouseMux make this possible) on the same computer, I came to the realization that stylus controls will act alternatingly between the players. That's going to be a problem for Stylus-heavy multiplayer games. So for instance, if I'm clicking or drawing on P1's touchscreen, it will get interrupted by P2's clicks, and vice versa. This also applies to the keyboard, but is much less so of an issue if you have USB controllers like me.

So my question is: is there a way for MelonDS to use stylus controls simultaneously on one computer?
I tried looking around in the settings, but I didn't really see anything.

____________________
THE LEGO MAN

CasualPokePlayer
Posted on 07-07-24 04:18 AM (rev. 2 of 07-07-24 04:18 AM) Link | #6801
I don't think this is really possible per se (at least not without a ton of work). Windows will merge all mice together for standard win32 message mice handling (which Qt uses), and other OSes do the same thing for standard message loops (which Qt again uses), that's not something you can exactly change (and even so, how would the program know *which* mouse it came from?). The only ways you normally can have multiple mice at the same time (on Windows) is by either using DirectInput or Raw Input (and for other OSes would probably require some other platform specific API for more low level input support). This effectively requires platform specific code for each OS to be written for handling input (an annoying task but certainly possible with effort).

Ditto for keyboards (they all get merged into one normally, no way around that outside of using lower level platform specific APIs).

LEGO_Vince
Posted on 07-07-24 02:05 PM Link | #6802
So it is a limitation within the computer then, eh? I'll try to see about your suggestion about Directinput and Rawinput then. Otherwise, I guess I gotta wait for LAN gameplay.

____________________
THE LEGO MAN

CasualPokePlayer
Posted on 07-07-24 05:17 PM Link | #6803
The suggestion is for developers of melonDS, that's not something the user can control.

Blockboy
Posted on 04-20-25 11:30 AM Link | #7637
I also ran into this problem and found something that I think technically works but doesn't seem to be worth it with the current state of netplay. I didn't know you could use directinput for mice in windows, but my impression is that windows isn't built to support multiple mice with independent simultaneous inputs anyways, so I switched to and started learning linux for this.

Linux can do the multiple mice stuff, relatively easily actually. The way I was able to do it was basically just adding a second cursor and linking another mouse to it. There were some graphical issues with the second cursor, but they were minor and probably fixable as well but I didn't bother. However since I was doing all this with the intention of playing online with a friend through parsec or something similar, and that didn't really work well with the state of netplay at the time (this was in like 2023, but I don't think things have changed too much?), I haven't touched the programs in a while.


Main - Compatibility / Testing - Keyboard/Mouse incompatibility with more than one emulator Hide post layouts | New reply

Page rendered in 0.047 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 78/78, time: 0.035 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.