Mouse button enabler, like GamePad Companion

setera
Unregistered
 
Post: #1
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.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
try CGPostKeyboardEvent in /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h (#include <ApplicationServices/ApplicationServices.h>)
Quote this message in a reply
setera
Unregistered
 
Post: #3
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.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
That function is available in 10.2.8, at least. It's definitely supported on 10.3.9.
Quote this message in a reply
setera
Unregistered
 
Post: #5
Now I can see it is truely available in Panther.
I mistook it for something else in reading Quartz Event Services Reference
on Apple's Web. Thanks. I will try it.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to support gamepad/joystick OptimisticMonkey 6 4,168 Dec 4, 2009 11:51 AM
Last Post: AnotherJake
  Left mouse button causes moueup event despite button still being pressed. QuestingCordiial 28 11,608 Jun 21, 2008 03:18 PM
Last Post: AnotherJake
  Problem reading mouse button state Bossa Nova 3 3,146 Jul 23, 2003 12:09 PM
Last Post: Iceman
  Second mouse button input David 5 4,132 Mar 28, 2003 07:24 AM
Last Post: rvangaal