HCT 12.1 Pointing and Drawing Devices, DirectInput Mouse test failure

Discussion in 'Windows Vista Drivers' started by Andrew, Feb 23, 2005.

  1. Andrew

    Andrew Guest

    Hi All



    The situation:



    HCT 12.1, Pointing and Drawing Devices, DirectInput Mouse



    This test correctly determines number of buttons (2), but invites to press
    not only buttons #1 and #2, but also un-existing buttons #3, #4, #5.



    BTW it works fine under the HCT 12.0



    That's the failing case:



    Start Case: ID 77:DI.GetDeviceData: Verify Mouse Data

    550.2A4 : --- SetProperty DIPROP_AXISMODE, dwHow ==
    DIPH_DEVICE, dwData == DIPROPAXISMODE_ABS

    550.2A4 : Returned from SetProperty(DIPROP_AXISMODE,
    DIPROPAXISMODE_ABS) (DI_OK == 00000000h)

    550.2A4 : --- GetCapabilities said, the mouse has 2 axes, and 2
    buttons

    550.2A4 : --- Test Mouse axes data, the mouse has 2 axes

    550.2A4 : The mouse's absolute position along the X-axis
    increased 17180

    550.2A4 : Absolute X-axis data can increased more than 300

    550.2A4 : DirectInputDevice::GetDeviceState() X-axis data was
    correct

    550.2A4 : The mouse's absolute position along the Y-axis
    increased -327

    550.2A4 : Absolute Y-axis data can increased more than 300

    550.2A4 : DirectInputDevice::GetDeviceState() Y-axis data was
    correct

    550.2A4 : --- Test Mouse button data, the mouse has 2 buttons

    550.2A4 : Correct button #2 was pressed

    550.2A4 : !!! ERROR: Wrong button. Button #2 was pressed, while
    testing button #3

    550.2A4 : !!! ERROR: Wrong button. Button #1 was pressed, while
    testing button #4

    550.2A4 : !!! ERROR: Wrong button. Button #2 was pressed, while
    testing button #5

    550.2A4 : VAR[SEV1 ] 6 : Test Case - 77:DI.GetDeviceData

    550.2A4 : +VAR+SEV1 6 : Test Case - 77:DI.GetDeviceData

    550.2A4 : End Case: ID 77:DI.GetDeviceData: Verify Mouse Data



    Any comments?



    TIA

    Andrew
     
    Andrew, Feb 23, 2005
    #1
    1. Advertisements

  2. Andrew

    Ray Trent Guest

    The usual answer is that a mouse filter driver has specified that the
    device has 5 buttons in response to IOCTL_MOUSE_QUERY_ATTRIBUTES. If
    those buttons don't actually exist, and there's no way for the driver to
    simulate it, this test will fail.
     
    Ray Trent, Feb 24, 2005
    #2
    1. Advertisements

  3. Andrew

    Andrew Guest

    Ray,

    I believe it's not the case here; I am pretty sure what I reply to the
    IOCTL_MOUSE_QUERY_ATTRIBUTES request for PS2 devices and I double checked
    descriptors for USB HID devices

    Again, the target test passes well; it does not request any unexpected
    activities



    PS

    I was sure your reply would be the very first one



    Anrdew



     
    Andrew, Feb 24, 2005
    #3
  4. Andrew

    Ray Trent Guest

    Hmmm. Not sure. That sounds weird. Might be a test bug. There's an
    erratum related to this
    (http://www.microsoft.com/whdc/hwtest/search/details.aspx?Type=err&ID=1353),
    but I don't know if it applies to your particular situation. In
    particular, it seems to only apply to devices with >= 5 buttons.
    However, there's another erratum
    (http://www.microsoft.com/whdc/hwtest/search/details.aspx?Type=err&ID=976)
    that indicates that the test sometimes detects the wrong number of
    buttons if you have >1 mouse plugged in.

    Anyway, when we had this problem, it was because we were reporting the
    wrong number in the IOCTL, but it sounds like you might have another
    problem.
     
    Ray Trent, Feb 24, 2005
    #4
  5. Andrew

    Andrew Guest

    That sounds weird.



    Yep, especially taking into account, the same driver packages don't have
    this sort of problems under the HCT12.0; did you try your drivers under the
    HCT 12.1?




    Been there, done that



     
    Andrew, Feb 24, 2005
    #5
  6. Andrew

    Andrew Guest

    However, there's another erratum
    That's why I have a plain vanilla PS2 2-butt mouse on my testing system


     
    Andrew, Feb 25, 2005
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.