Thread: Multipul Mice!

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

    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?

  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
    2,158
    Thanks for the replys. But I found and decided to use Raw Input. Unfortunately it only works on XP and up.

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, 11: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, 03:13 AM
  5. Trackball Drivers
    By windoze victim in forum Linux Programming
    Replies: 6
    Last Post: 11-29-2002, 12:42 AM