SFML community forums
General => Feature requests => Topic started by: K-Bal on December 13, 2009, 11:05:51 am
-
Could there be an easy way to support multiple mice?
Ciao,
Marius
-
Yep, this is planned for the future.
-
Neat, I'm excited ;)
-
I'm just curious, what are you planning to do with multiple mice? ;)
-
What do you mean with multiple mice ? Several cursors ? One cursor with combined movements ?
-
One cursor with combined movements ?
I think this one is seen by the OS as a single mouse ;)
-
Yes, but I wonder how you can plan to handle several cursors with SFML if the OS are not able to do so ? Or.. are they ?
-
I think that modern OSes can do so.
And actually, I was originally planning to support this feature for multi-touch devices such as the iPhone.
-
I can understand for multi-touch devices, but I don't know how it is possible for classic mice :/ . But well.. let's see :) .
-
Actually, Windows supports it very well, see this:
http://cpnmouse.sourceforge.net/
I just realize that I've already used this driver for a university project a long time ago :D
-
I'm just curious, what are you planning to do with multiple mice? ;)
Hotseat Hack'n'Slay :lol:
-
multiple mice+multiple keyboards = split screen pc games?
-
Yeah, I remember an old DOS game that used two mices. Settlers 2 strategy game had a multiplayer split screen, requiring 2 mices (I remember to try it with my brother :))
Anyway, I think SFML interface for single mice, multiple mices and touch-screen should be the same for all. And it's still possible to simulate touch-screen on OS that supports only one mice.
So letting a middle class being extended would allow SFML users to add their own touch-screen simulators or way to reinterpret devices input, being it able to incorporate even other input devices that aren't directly supported in SFML (well maybe it isn't that easy to generalise that much, but eventual devices similar to mice/touchscreens can easily be incorporated).
-
Multiple keyboards is one frequently requested feature (for Performous multiplayer). I'm looking forward to this.
-
For future reference and people searching, this is indeed possible.
I've got a slightly long minimal example here: https://github.com/ath88/MMSFML