ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to start coding again and need to know where and with what i sould get started.
I'm looking to build a GUI app that will access a second mouse on usb
and use it's output to control variables(like volume,desktop switching,and the buttons would launch a user specified app) in KDE.
this is certainly a larger undertaking than i think, but i'm gonna give it a wack anyway.
so i've been reading the kdevelop manual and coming along ok.
but i've not seen much info about devices and/or usb.
Well, handling a second mouse is going to require some pretty low-level programming. I doubt Qt or Gtk support a second mouse, you might have to use raw X for that, or possibly go even lower-level than that.
yeah thats what i'm starting to see.
But what about this?
I have a Logitech Marble mouse. It's got 4 buttons (2 intended to be scroll up and down). The scroll buttons are both treated as the middle button.
any idea how to setup an app to reconfigure what the buttons do.
I guess i just need to know where the program will need to run. (control center module, applet, kernel, commandline, etc..)
I'm sure that i will fail a thousand times at this.
but i'm also sure I'll learn a ton along the way.
Thanks for any and all help.
I'm not sure because I've never done this, but if you want a device to function differently than it is programmed to, I would think you'd have to rewrite the driver for it. I might be wrong, but that's my guess.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.