cos / sin in filter driver?
- From: "varname" <v@xxx>
- Date: Wed, 4 May 2005 15:49:54 +0200
hello,
as my first attempt at win32 driver writing (filter to be exact), I have a
piece of hardware that's basically a modified ps/2 mouse. The x-'sensor' is
used as a 'length' indicator, and the y-'sensor' as an 'angle' (think
old-style record player with the 'beam' thing that you could move around).
To translate the data coming from the mouse, I thought (after reading alot)
that a filter driver would be best suited, they're supposed to 'modify the
behavior of a device' (I hope I interpreted that correctly).
translating the input to useable x-y values is trivial:
x-component = x_sensor_value * sin(alpha)
y-component = x_sensor_value * cos(alpha)
where 'alpha' is the angle the beam is currently being held under (i'm only
considering horizontal angle) calculated from the MOUSE_INPUT_DATA's
'LastY'.
my problem is that I've understood that one can't use sin / cos in
kernel-(filter)drivers.
* Is a filter driver not the way to go here, and if so what do you
recommend I use for the translation (it's important that the device can be
used in all windows applications)?
* Is there a way I can make use of sine and cosine functions (sine
expansion / cosine expansion)?
thanks
.
- Follow-Ups:
- Re: cos / sin in filter driver?
- From: Marc Reinig
- Re: cos / sin in filter driver?
- Prev by Date: Names of currently open files
- Next by Date: Re: System-wide Hooking to catch Postmessages unreliable
- Previous by thread: Names of currently open files
- Next by thread: Re: cos / sin in filter driver?
- Index(es):
Relevant Pages
|