Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Multiple Mice  (Read 8716 times)

0 Members and 1 Guest are viewing this topic.

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
Multiple Mice
« on: December 13, 2009, 11:05:51 am »
Could there be an easy way to support multiple mice?

Ciao,
Marius
Listen to my band: pencilcase.bandcamp.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Multiple Mice
« Reply #1 on: December 13, 2009, 11:45:18 am »
Yep, this is planned for the future.
Laurent Gomila - SFML developer

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
Multiple Mice
« Reply #2 on: December 13, 2009, 12:36:40 pm »
Neat, I'm excited ;)
Listen to my band: pencilcase.bandcamp.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Multiple Mice
« Reply #3 on: December 13, 2009, 12:39:02 pm »
I'm just curious, what are you planning to do with multiple mice? ;)
Laurent Gomila - SFML developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Multiple Mice
« Reply #4 on: December 13, 2009, 03:53:37 pm »
What do you mean with multiple mice ? Several cursors ? One cursor with combined movements ?
Want to play movies in your SFML application? Check out sfeMovie!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Multiple Mice
« Reply #5 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 ;)
Laurent Gomila - SFML developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Multiple Mice
« Reply #6 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 ?
Want to play movies in your SFML application? Check out sfeMovie!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Multiple Mice
« Reply #7 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.
Laurent Gomila - SFML developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Multiple Mice
« Reply #8 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 :) .
Want to play movies in your SFML application? Check out sfeMovie!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Multiple Mice
« Reply #9 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
Laurent Gomila - SFML developer

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
Multiple Mice
« Reply #10 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:
Listen to my band: pencilcase.bandcamp.com

l0calh05t

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Multiple Mice
« Reply #11 on: December 13, 2009, 08:27:48 pm »
multiple mice+multiple keyboards = split screen pc games?

gsaurus

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • Evolution Engine
Multiple Mice
« Reply #12 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).
Pluma - Plug-in Management Framework

Tronic

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://performous.org/
Multiple Mice
« Reply #13 on: August 13, 2010, 03:06:16 am »
Multiple keyboards is one frequently requested feature (for Performous multiplayer). I'm looking forward to this.

ath88

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Multiple Mice
« Reply #14 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

 

anything