Re: turning a device into a mouse
- From: "Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx>
- Date: Wed, 2 Jan 2008 05:57:43 +0300
You need:
1) to install your device as Mouse class in the INF file
2) to write the driver as mouse port driver - look at i8042prt DDK sample
The mouse port driver should handle the "internal mouse connect" IOCTL and
then call the upper driver's routine with the array of MOUSE_INPUT_DATA
structures.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
"Michael Brian Bentley" <bentley@xxxxxxxxxxxx> wrote in message
news:bentley-55E906.16525501012008@xxxxxxxxxxxxxxxxxxxxxxxxx
Saluations,
I am slowly coming to grips with the task of creating some driver-level
code to add to existing regular driver code to make a mouse of a device.
I need to accept a stream of bytes from a device connected by way of a
USB/COM port, and turn the byte stream into what you'd expect to see
from a regular mouse input stream.
I originally thought I only needed to create a mouse filter driver to
convert the byte stream, but now I'm thinking that I need something
lower, the equivalent of a filter driver "between" the USB/COM driver
and the mouse drivers, to turn the byte stream into a bona fide mouse
stream before the mouse driver code sees anything.
Does this thinking make sense?
I have to somehow persuade the system to recognize this resultant
contraption as a mouse.
I'm reading the WDK documentation, studying the somewhat cryptic .inf
file configuration process, and trawling for clues. And slowly reading
the archive for this newsgroup.
For now I'm only trying to get this to work on xp.
Thanks!
-Michael Brian Bentley
.
- Follow-Ups:
- Re: turning a device into a mouse
- From: Michael Brian Bentley
- Re: turning a device into a mouse
- References:
- turning a device into a mouse
- From: Michael Brian Bentley
- turning a device into a mouse
- Prev by Date: turning a device into a mouse
- Next by Date: Re: User-land Callback From Driver
- Previous by thread: turning a device into a mouse
- Next by thread: Re: turning a device into a mouse
- Index(es):
Relevant Pages
|
Loading