Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Dynamically changing mouse pointer speed/sensitivity

Dynamically changing mouse pointer speed/sensitivity

Scheduled Pinned Locked Moved Unsolved Game Development
2 Posts 2 Posters 417 Views
  • 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.
  • D Offline
    D Offline
    Dr Teeth
    wrote on 10 Dec 2021, 14:42 last edited by
    #1

    I have written an educational game for school children, and want to add a section which involves moving a mouse pointer over areas of the screen. As the pointer enters a new area, i want to slow down the mouse, and then speed it up again when leaving the area.

    Unfortunately, I am at a loss on how to change the pointer speed.

    Am I right in thinking that it is to do with the QMouseDevice.setSensitivity() and QMouseHandler? If so, how do I use the MouseHandler to effect a change in the actual pointer movements?

    Can anyone point in the right direction?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 Dec 2021, 19:18 last edited by
      #2

      Hi and welcome to devnet,

      IIRC, you should rather implement a "virtual pointer" so that you have complete control on it rather than trying to modify your system settings from within your application.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      1/2

      10 Dec 2021, 14:42

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved