Re: turning a device into a mouse



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

.



Relevant Pages

  • RE: Device driver load/unload notifications
    ... notification for every StreamDevice driver which is in the system. ... you'll get only the notification for your special device. ... if you use your own guid or the DEVCLASS_STREAM_GUID. ... When stream driver A is being loaded and unloaded, ...
    (microsoft.public.windowsce.platbuilder)
  • RE: Device driver load/unload notifications
    ... notification for every StreamDevice driver which is in the system. ... you'll get only the notification for your special device. ... if you use your own guid or the DEVCLASS_STREAM_GUID. ... When stream driver A is being loaded and unloaded, ...
    (microsoft.public.windowsce.platbuilder)
  • Confused about Kernel Streaming / DShow clocks...
    ... queried to give me a very accurate clock source. ... master clock for the graph (which might be themselves, ... then my clock support is going via the stream class driver. ...
    (microsoft.public.development.device.drivers)
  • Confused about Kernel Streaming / DShow clocks...
    ... queried to give me a very accurate clock source. ... master clock for the graph (which might be themselves, ... then my clock support is going via the stream class driver. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Confused about Kernel Streaming / DShow clocks...
    ... If you are a stream class minidriver, you implement the clock using the ... > written under the stream class driver. ...
    (microsoft.public.win32.programmer.directx.video)

Loading