SFML community forums

General => Feature requests => Topic started by: K-Bal on December 13, 2009, 11:05:51 am

Title: Multiple Mice
Post by: K-Bal on December 13, 2009, 11:05:51 am
Could there be an easy way to support multiple mice?

Ciao,
Marius
Title: Multiple Mice
Post by: Laurent on December 13, 2009, 11:45:18 am
Yep, this is planned for the future.
Title: Multiple Mice
Post by: K-Bal on December 13, 2009, 12:36:40 pm
Neat, I'm excited ;)
Title: Multiple Mice
Post by: Laurent on December 13, 2009, 12:39:02 pm
I'm just curious, what are you planning to do with multiple mice? ;)
Title: Multiple Mice
Post by: Ceylo on December 13, 2009, 03:53:37 pm
What do you mean with multiple mice ? Several cursors ? One cursor with combined movements ?
Title: Multiple Mice
Post by: Laurent on December 13, 2009, 03:56:20 pm
Quote
One cursor with combined movements ?

I think this one is seen by the OS as a single mouse ;)
Title: Multiple Mice
Post by: Ceylo on December 13, 2009, 04:07:43 pm
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 ?
Title: Multiple Mice
Post by: Laurent on December 13, 2009, 04:17:38 pm
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.
Title: Multiple Mice
Post by: Ceylo on December 13, 2009, 04:24:23 pm
I can understand for multi-touch devices, but I don't know how it is possible for classic mice :/ . But well.. let's see :) .
Title: Multiple Mice
Post by: Laurent on December 13, 2009, 04:31:45 pm
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
Title: Multiple Mice
Post by: K-Bal on December 13, 2009, 05:59:30 pm
Quote from: "Laurent"
I'm just curious, what are you planning to do with multiple mice? ;)


Hotseat Hack'n'Slay  :lol:
Title: Multiple Mice
Post by: l0calh05t on December 13, 2009, 08:27:48 pm
multiple mice+multiple keyboards = split screen pc games?
Title: Multiple Mice
Post by: gsaurus on February 09, 2010, 01:47:01 pm
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).
Title: Multiple Mice
Post by: Tronic on August 13, 2010, 03:06:16 am
Multiple keyboards is one frequently requested feature (for Performous multiplayer). I'm looking forward to this.
Title: Re: Multiple Mice
Post by: ath88 on August 08, 2014, 02:19:30 am
For future reference and people searching, this is indeed possible.

I've got a slightly long minimal example here: https://github.com/ath88/MMSFML