Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Hi I want to know how to distinguish two mouse signal.

Hi I want to know how to distinguish two mouse signal.

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Charles of Korea
    wrote on last edited by
    #1

    Hi everybody! I have a question. If there are two mouses(A,B) pluged in a computer, I wonder how to distinguish A from B. plz help me :doh:

    S 1 Reply Last reply
    0
    • C Charles of Korea

      Hi everybody! I have a question. If there are two mouses(A,B) pluged in a computer, I wonder how to distinguish A from B. plz help me :doh:

      S Offline
      S Offline
      Sreedhar DV
      wrote on last edited by
      #2

      Are you able to use two mice at a same time???

      Sreedhar DV [Real success is having courage to meet failure without being defeated.]

      R 1 Reply Last reply
      0
      • S Sreedhar DV

        Are you able to use two mice at a same time???

        Sreedhar DV [Real success is having courage to meet failure without being defeated.]

        R Offline
        R Offline
        Roger Broomfield
        wrote on last edited by
        #3

        To answer your question Sreedhar, yes, case in point laptops which come with a stupid touchpad which remains active when I plugin a respectable USB mouse. To answer Charles, the only way you can do this is to use the Raw Input Model. Handle the WM_INPUT message, process the RAWINPUT structure pointed to by lParam, it contains a RAWINPUTHEADER structure which contains a hDevice that you can pass to GetRawInputDeviceInfo. NOTE: raw input is available only when the application calls RegisterRawInputDevices with valid device specifications.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups