473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

capture Mouse Movement on Linux screen

13
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
May 6 '09 #1
2 4847
mac11
256 100+
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.
May 7 '09 #2
LurkB
13
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.
May 7 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Robin Shuff | last post by:
Hi, I'm trying to limit the movement of the mouse cursor in using a VB app. The idea is to stop the cursor straying on to the second monitor of a dual screen set-up (i.e. a projector) while this...
4
by: Michele Diegoli | last post by:
Hi to everybody, I have an hard question: I want to use two indipendent mouse with my application. How can I implement this? --Michele Diegoli
3
by: Wapr | last post by:
Hi, How can I limit to movement of the cursor on my form to a specified rectangle? thanks
1
by: Benny Raymond | last post by:
In my attempt to make a macro recording program where i can then playback mouse movements i'm running into a big problem: I'm trying to simulate the movement of the mouse to a point on the...
4
by: gregory_may | last post by:
http://www.geocities.com/krishnapg/screencap.html This article gives a pretty good background on various ways to capture the screen. I have some code to do it the GDI way below, but I cant...
4
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I...
5
by: hurricane_number_one | last post by:
I am creating a simple server application, that will listen for incoming mouse coordinates and then move the mouse accordingly. So basically it's like a very simple VNC server without and screen...
2
by: LurkB | last post by:
Hello, I wonder how I could monitor a mouse movement on LINUX operating system screen using C# Thanks in Advance L
11
by: LurkB | last post by:
Hello, I wonder whether how MouseListener can be used to capture a mouse movement on LiNux screen . Thanks in Advance L
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.