Gaming mice

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
hometue
Member
Member
Posts: 100
Joined: Thu Dec 19, 2013 1:40 am
Location: Asia, Singapore

Gaming mice

Post by hometue »

Hi guys, I was wondering about how to make a driver for a gaming mouse (like my razer deathadder). So basically, it has the mouse buttons, but has two other buttons which can be used as macros. My question is, how do we tell whether those buttons are pressed? In windows I noticed that there are separate drivers other than a regular mouse driver (a keyboard one to be specific). So...do we have to make a special driver for gaming mice for the macros or is there other ways to do it.

PS: If anyone wonders, of course I am not at this stage yet, I am still coding my GDT and IDT (yeah, I knew I asked about it long ago but...got caught up with other things in my life)
CookieOS. Want a cookie? Its only black and white for now though, probably as bad as my baking skills.
User avatar
Bender
Member
Member
Posts: 449
Joined: Wed Aug 21, 2013 3:53 am
Libera.chat IRC: bender|
Location: Asia, Singapore

Re: Gaming mice

Post by Bender »

Well, stuff like gaming mice are "very" hardware specific, and the extra features are only possible if you've USB support. Mouse without USB means using PS/2 Emulation which is slow, and USB support isn't trivial.
I don't see any such programmer's documentation for the mice, in fact the master guide tells you to download the driver for Windows or Mac (no Linux support maybe?), which means that only Razer can provide drivers for their mice. You can always do some gnireenigne-esrever. :)
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
User avatar
hometue
Member
Member
Posts: 100
Joined: Thu Dec 19, 2013 1:40 am
Location: Asia, Singapore

Re: Gaming mice

Post by hometue »

Maybe...(After 10 years...just kidding but its definitely not in the near future)
CookieOS. Want a cookie? Its only black and white for now though, probably as bad as my baking skills.
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: Gaming mice

Post by thepowersgang »

Actaully, to be sold as a USB device, it must conform to the USB standard, which means it follows the USB HID protocol (at least for the main set of five buttons and movement).

Probably the only way of seeing how hard it would be to interface with it would be to plug it in and see what USB devices show up (of course, this means you'll need a USB stack in your OS to get full use of it)
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

Re: Gaming mice

Post by Owen »

thepowersgang wrote:Actaully, to be sold as a USB device, it must conform to the USB standard, which means it follows the USB HID protocol (at least for the main set of five buttons and movement).

Probably the only way of seeing how hard it would be to interface with it would be to plug it in and see what USB devices show up (of course, this means you'll need a USB stack in your OS to get full use of it)
It only has to comply with the USB specification to comply; not HID.

If it was required to comply with HID... Microsoft & co wouldn't be able to sell all those "XInput" game controllers.
Post Reply