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. Cant change mouse speed with SPI_SETMOUSE !

Cant change mouse speed with SPI_SETMOUSE !

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingperformancehelp
2 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.
  • F Offline
    F Offline
    feederman
    wrote on last edited by
    #1

    hi i have been trying for bout 2 hrs to change mosu espeed with the floowing code and just doesnt work. Im using windows xp. long speed[3], new_speed[3]; // Get current mouse speed SystemParametersInfo(SPI_GETMOUSE, NULL, speed, NULL); new_speed[0] = speed[0]; new_speed[1] = speed[1]; new_speed[2] = speed[2] * 2; // Set the mouse speed two times faster SystemParametersInfo(SPI_SETMOUSE, NULL, new_speed, NULL); When i debug i can see that new_speed[2] is changing but it has no visual effect on the cursor. It just doesnt make any sense. When i go into control panel the speed is always the same!! I could rerally use some help here. Cheers Guys

    R 1 Reply Last reply
    0
    • F feederman

      hi i have been trying for bout 2 hrs to change mosu espeed with the floowing code and just doesnt work. Im using windows xp. long speed[3], new_speed[3]; // Get current mouse speed SystemParametersInfo(SPI_GETMOUSE, NULL, speed, NULL); new_speed[0] = speed[0]; new_speed[1] = speed[1]; new_speed[2] = speed[2] * 2; // Set the mouse speed two times faster SystemParametersInfo(SPI_SETMOUSE, NULL, new_speed, NULL); When i debug i can see that new_speed[2] is changing but it has no visual effect on the cursor. It just doesnt make any sense. When i go into control panel the speed is always the same!! I could rerally use some help here. Cheers Guys

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      Try using SPI_SETMOUSESPEED instead. SPI_SETMOUSE only sets the acceleration thresholds, not the actual speed. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
      Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

      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