Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:05:19+00:00 2026-06-07T13:05:19+00:00

I used to work in windows and if in my C# wpf application I

  • 0

I used to work in windows and if in my C# wpf application I wanted to detect mouse up and mouse down , I did it using mouseup event.

Now I want to develop a simple application in C++ which detects mouse up and mouse down events in Linux . I have no idea about how to proceed , which is the best way and what libraries to use . Please guide me about how to go ahead .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:05:20+00:00Added an answer on June 7, 2026 at 1:05 pm

    Your question is just too broad… but I’ll try anyway.

    You can go with the device access level:

    1. You can read input events directly from /dev/input/*. It is not difficult, but your application will need root access, or else you’ll have to change the permissions of the devices. The main advantage is that you can read the mouse without even create a connection with the X server.

    2. You can work as an X client:

      a. You can use the X access directly, Xlib (not really recommended).

      b. You can use a toolkit library, such as GTK+, Qt or WxWidgets, to name a few.

    With option 2. you may have a hard time if you want to get the events that happen in windows from other applications. YMMV.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Server/Client cybercafe management application which used to work fine on Windows
So this used to work without a hitch but now I get a Socket
I need my application to run on windows startup. I always used registry to
This code used to work on Vista (and Windows XP) but after an upgrade
I'm currently developing a small application in WPF for us at work though I'm
I am developing an application using VS 2010 and WPF... I need to put
Should Application.Current.Shutdown() NOT be used as a best practice to close a WPF application?
I have a WPF (.Net 4) ListView used to navigate a local Windows directory.
Cocoa used to work on CS3 with the trick of putting a Cocoa bundle
I used to work in JavaScript a lot and one thing that really bothered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.