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. Other Discussions
  3. Article Writing
  4. Accessing Mouse Sensitivity

Accessing Mouse Sensitivity

Scheduled Pinned Locked Moved Article Writing
csharpc++data-structureshelpannouncement
1 Posts 1 Posters 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I am trying to programmatically change the mouse horizontal/vertical sensitivity within MSVC++ 5.0. I am using inline assembly to invoke mouse interrupts (INT 33) to Get and then Set the sensitivities. (Microsoft took the Int86() function out of this version.) My problem is I lose my mouse buttons when forcing this interrupt and I have to reboot to get them back. I have disassembled some current mouse drivers and am confident(not really) that I am using the correct assembly code. I suspect that because I am invoking the INT 33 as a result of a button push on a dialog box that the message queue or interrupt handler is going recursive. But I am not sure. I can set the mouse acceleration factors just fine by using the SystemParametersInfo() function. Can anyone give me a hint or a different technique on setting the mouse sensitivities. Below is the inline asm listing. It is in the OnHScroll event for a slider bar. __asm{ push ebx push ecx push edx mov ax,0x001b INT 0x33 //MOUSE_INT mov [h], bx mov [v], cx mov [s], dx pop edx pop ecx pop ebx xor ax, ax } Thanks in advance. . . -- C. Ehmke ehmkec@uswest.net

    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