Re: USB HID Absolute Positioning Mouse Resolution Issues

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



SendInput() is how you report mouse data in UM

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Sanjeev" <Sanjeev@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CE1C3902-FC68-465A-BD3C-C368F9A7101B@xxxxxxxxxxxxxxxx
> Doron,
>
> Thank you for your replies to both posts.
>
> I wasn't clear in my question here. Ofcourse, we will be using the HID
> miniport driver for handling our device data. My question was more for
> being
> able to do emuate a mouse device from the Windows user space? Linux lets
> you
> emulate an input device from user space (using uinput kernel driver).
>
> I was going to use it to checkout the windows behivor by supplying
> absolute
> mouse data. Thanks,
> -Sanjeev
>
> "Doron Holan [MS]" wrote:
>
>> if your driver does not need to communicate with user mode, a HID
>> miniport
>> driver is the easiest way to go. you just report the data, the rest of
>> the
>> stack deals with getting into the mouse stack.
>>
>> d
>>
>> --
>> Please do not send e-mail directly to this alias. this alias is for
>> newsgroup purposes only.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> "Sanjeev" <Sanjeev@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:79570436-1163-48E2-AEC7-CE9FF5C97447@xxxxxxxxxxxxxxxx
>> > Hi Prashant,
>> >
>> > We also have a need similar to yours as we will be emulating a USB
>> > absolute
>> > positioning device too.
>> >
>> > 1) How are you emulating the device? Is there a way to do this
>> > emulation
>> > using windows software?
>> >
>> > 2) In your experiment, was windows application software able to
>> > recognize
>> > the absolute movement correctly? In Linux, there is a problem as X
>> > Server
>> > mouse driver only accepts the relative mouse data, thus the kernel
>> > driver
>> > has
>> > to translate the absolute data to relative data and hence mouse
>> > movements
>> > are
>> > not very smooth.
>> >
>> > I will appreciate any input you can provide.
>> >
>> > Regards,
>> > -Sanjeev
>> > ssood344@xxxxxxxxxxx
>> >
>> >
>> > "PrashantR" wrote:
>> >
>> >> With help from the USB-IF newsgroup, we figure out the problem:
>> >> 1. the size of the report desc was not properly set in the HID desc
>> >> (ie. it was hardcoded)
>> >> 2. the packet size was not properly set in the endpoint desc
>> >>
>> >> Problem solved. We have no resolution problems.
>> >>
>> >> prashant.
>> >>
>> >>
>>
>>
>>


.



Relevant Pages

  • Re: USB HID Absolute Positioning Mouse Resolution Issues
    ... we will be using the HID ... emulate an input device from user space (using uinput kernel driver). ... I was going to use it to checkout the windows behivor by supplying absolute ... >> We also have a need similar to yours as we will be emulating a USB ...
    (microsoft.public.development.device.drivers)
  • Sound, dual soundcards, second attempt (better I hope)
    ... PCI: PCI BIOS revision 2.10 entry at 0xfdb01, ... Journalled Block Device driver loaded ... usb.c: new USB bus registered, ... alias char-major-10-175 agpgart ...
    (comp.os.linux)
  • Re: Starting a driver
    ... Please do not send e-mail directly to this alias. ... msvad to know if you can do what you want, but the underlying bth radio will ... >> the bluetooth stack "starts" the btaudio driver by enumerating the>> audio ...
    (microsoft.public.development.device.drivers)
  • Re: DDK bug? moufiltr installation
    ... Please do not send e-mail directly to this alias. ... > I will also try the lower filter option. ... > server DDK) but not hidclass source code. ... Where can I get hidclass driver ...
    (microsoft.public.development.device.drivers)
  • Re: IOCTL_MOUSE_QUERY_ATTRIBUTES usage?
    ... Please do not send e-mail directly to this alias. ... I tried that but bResult came ... > actual control codes to the mouse driver to change certain settings. ...
    (microsoft.public.development.device.drivers)