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. Prevent Mouse Movement.

Prevent Mouse Movement.

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 Posts 2 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.
  • S Offline
    S Offline
    Storm blade
    wrote on last edited by
    #1

    Hi, I'm trying to separate the mouse cursor movement from the mouse movement... The problem is, when using a touchscreen monitor, I can capture the touch events using RawInput, and I want to process those events internally, without the mouse cursor moving. However windows sees the touch event and moves the cursor. So, is there any way of separating mouse events from the on-screen cursor movement, such that the on-screen cursors position is controlled purely by my application. Thanks... Simon

    V 1 Reply Last reply
    0
    • S Storm blade

      Hi, I'm trying to separate the mouse cursor movement from the mouse movement... The problem is, when using a touchscreen monitor, I can capture the touch events using RawInput, and I want to process those events internally, without the mouse cursor moving. However windows sees the touch event and moves the cursor. So, is there any way of separating mouse events from the on-screen cursor movement, such that the on-screen cursors position is controlled purely by my application. Thanks... Simon

      V Offline
      V Offline
      vikas amin
      wrote on last edited by
      #2

      U can use the HOOK fundamentals of the windows OS just track the mouse_events Get the mouse coordinate sotre it in some variable in the application the u can reset the mouse cursor to its original coordinates Its a long time i have used hook so u can just go throught some projects on this site , and check that :cool: Vikas Amin Embin Technology Bombay vikas.amin@embin.com

      S 1 Reply Last reply
      0
      • V vikas amin

        U can use the HOOK fundamentals of the windows OS just track the mouse_events Get the mouse coordinate sotre it in some variable in the application the u can reset the mouse cursor to its original coordinates Its a long time i have used hook so u can just go throught some projects on this site , and check that :cool: Vikas Amin Embin Technology Bombay vikas.amin@embin.com

        S Offline
        S Offline
        Storm blade
        wrote on last edited by
        #3

        Thanks, Unfortunatly, this doesn't prevent windows moving the cursor, so you still get the cursor jumping to the unwanted position then going to the wanted position... :doh:

        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