Multipul Mice!

This is a discussion on Multipul Mice! within the Windows Programming forums, part of the Platform Specific Boards category; I have seen several programs that support multipul mice (USB ofcourse); how is this done? Multipul drivers? Or is there ...

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,641

    Cool Multipul Mice!

    I have seen several programs that support multipul mice (USB ofcourse); how is this done? Multipul drivers? Or is there some library of api that can do that for you?
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  2. #2
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195
    Windows has support for multiple mice and other pointing devices. Unfortunately they are all funneled into one pointer on the screen (such as in the case of my laptop's touchpad and external mouse). There are ways of polling for pointing devices. The method that I know of is to use DirectInput (a DirectX API). Look up DI8DEVCLASS_POINTER on MSDN because it is used in enumerating multiple devices.
    Founder and avid member of the Internationsl Typo Associateion

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    As far as the graphics driver is concerned, there is only ever one mouse-pointer (cursor), so if you want multiple mice to control a pointer each, the non-main one(s) will have to be done entirely in software. This works OK for most things, but if you have overlays, it may cause "interesting" things to happen (overlays are used by some 3D Open GL drawing software, as well as video-players such as Windows Media player). This is because overlays are handled by hardware, and there's no trivial way to see what's in the overlay layer.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,641
    Thanks for the replys. But I found and decided to use Raw Input. Unfortunately it only works on XP and up.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Play multipul sounds at once.
    By Queatrix in forum C++ Programming
    Replies: 6
    Last Post: 09-19-2006, 10:57 PM
  2. Mice Are Nesting!!!
    By Dagger in forum C++ Programming
    Replies: 4
    Last Post: 02-05-2006, 10:59 PM
  3. One computer using two mice & two keyboards
    By Series X4 1.0 in forum Tech Board
    Replies: 11
    Last Post: 06-28-2004, 02:07 PM
  4. Using multipul files, c++
    By xconspirisist in forum C++ Programming
    Replies: 6
    Last Post: 12-04-2003, 02:13 AM
  5. Trackball Drivers
    By windoze victim in forum Linux Programming
    Replies: 6
    Last Post: 11-28-2002, 11:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21