cos / sin in filter driver?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: WDF Class Filter Driver Installation
    ... I've installed the driver as a boot time ... WdfLdr: DllInitialize - OsVersion ... It seems that making the driver an upper filter of the System Setup ... what right clicking on the inf file -> Install would do for non-Wdf ...
    (microsoft.public.development.device.drivers)
  • Re: system monitoring
    ... load the driver. ... I would be curious to see a reference to this WHQL ... because you used the term "legacy filter", especially since if he did want ... the new file system mini-filter model and KMDF ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to define IKsObject from ksproxy.h ?
    ... If you are keen on getting the scheme with the service - kernel driver to ... In the driver queue incoming buffers in device object not per filter because ... > can show only real web camera or ks minidriver it their hw camera list. ... > error code 50 in user mode. ...
    (microsoft.public.development.device.drivers)
  • Re: pushdesktop filter in driver
    ... so basically i connected the push source filter to a WMV ... i could able to capture whuts going on thedesktop. ... >> So I started to create a VfW driver. ... > code from the PushSource filter inside you driver. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: kbfiltr question
    ... I am afraid usbhub is COMPLETELY irrelevant in this discussion -it just ... Therefore, it is more of a bus driver, rather than FDO..... ... how would you describe the filter in between Usbstor.sys ... [device lower filters] ...
    (microsoft.public.development.device.drivers)