capture Mouse Movement on Linux screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LurkB
    New Member
    • Oct 2008
    • 13

    #1

    capture Mouse Movement on Linux screen

    Hey ,

    I wonder how I could use C/C++ to capture movement of a mouse on Linux screen (not just on a particular webpage user is on).

    Thanks in advance
    L
  • mac11
    Contributor
    • Apr 2007
    • 256

    #2
    What exactly are you after?

    Do you want to make an application with a graphical interface of some sort that tracks mouse movement? If so there are numerous libraries to help - GTK and QT come to mind.

    If you just want to play you can use a utility called 'xev' to show you mouse events. The command 'man xev' should get you started (or internet search).

    If you need something even more extravagant you can write a driver to plug into X (maybe you have a touchscreen or something)?

    Maybe you can explain more about what you want to do with the mouse events.

    Comment

    • LurkB
      New Member
      • Oct 2008
      • 13

      #3
      hey ,

      i'm re-evaluating and thinking about may be cutting off this part to later phase or to replace it with something else because it is part of a not-workable idea... i wanted to see whether mouse events (other than clicking links or something for some other functions) have anything related to a person psychologically . but writing a new driver won't do since i want to apply it online .. thanks for suggestion.

      Comment

      Working...