none
How to use WinCE 6 USB HID Mouse driver for HID Touch RRS feed

  • Question

  • Hello,

    is it possible to use the USB HID mouse driver for USB HID Touch screens? If so, how could I configure the mouse driver to accept absolute coordinates?

    Thanks,

    Andreas


    Thursday, October 20, 2011 10:28 AM

Answers

  • The HID driver passes mouse events to GWES using the mouse_event API (see %_WINCEROOT%\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\HID\CLIENTS\MOUHID\BASE\mouhid.cpp).

    The first thing that comes to my mind is cloning (see Bruce Eitman's blog http://geekswithblogs.net/BruceEitman/Tags/Clone/default.aspx) the MOUHID.DLL driver and modify the following:

        if (fSendEventToSystem) {
            dwFlags |= MOUSEEVENTF_ABSOLUTE;  //added
            mouse_event(dwFlags, dx, dy, dwData, 0);
        }

     


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    • Marked as answer by Andreas_1981 Thursday, October 27, 2011 6:31 AM
    Friday, October 21, 2011 3:08 PM