Mouse button enabler, like GamePad Companion
I'm trying to write a code that enables all eight buttons of
Logitech MX900 mouse, like GamePad Companion can. I want to
assign the buttons to perform key strokes on keyboard.
Using HID class device interface in the I/O kit, I have suceeded in
getting mouse input event from a queue. But I have no idea how to
generate a key code and notice OS(kernel) that the key code is entered
without any real key stroke, with just mouse clicks.
Could someone give advice to me ?
P.S. Sorry poor English.
Logitech MX900 mouse, like GamePad Companion can. I want to
assign the buttons to perform key strokes on keyboard.
Using HID class device interface in the I/O kit, I have suceeded in
getting mouse input event from a queue. But I have no idea how to
generate a key code and notice OS(kernel) that the key code is entered
without any real key stroke, with just mouse clicks.
Could someone give advice to me ?
P.S. Sorry poor English.
try CGPostKeyboardEvent in /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h (#include <ApplicationServices/ApplicationServices.h>)
Hello, OneSadCookie, thank you very much for your replay.
I tried it as you wrote, but I found I can't use it because my OS
version is 10.3.9(Panther). Thanks anyway.
I tried it as you wrote, but I found I can't use it because my OS
version is 10.3.9(Panther). Thanks anyway.
That function is available in 10.2.8, at least. It's definitely supported on 10.3.9.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| How to support gamepad/joystick | OptimisticMonkey | 6 | 3,702 |
Dec 4, 2009 11:51 AM Last Post: AnotherJake |
|
| Left mouse button causes moueup event despite button still being pressed. | QuestingCordiial | 28 | 10,217 |
Jun 21, 2008 03:18 PM Last Post: AnotherJake |
|
| Problem reading mouse button state | Bossa Nova | 3 | 2,822 |
Jul 23, 2003 12:09 PM Last Post: Iceman |
|
| Second mouse button input | David | 5 | 3,725 |
Mar 28, 2003 07:24 AM Last Post: rvangaal |
|

