none
Pen Tablet Driver development RRS feed

  • Question

  • I've a custom Tablet pointing device ( Like a wacom bamboo device),  And I developed a device driver which can read the pen data from the device.

    But, Now I want to upstream that data to windows. So it recognizes the data as if it is coming from a Tablet PC.

    Can anyone give me a head start in this, any api's or docs



    • Edited by Pratap.k Tuesday, March 6, 2012 12:59 PM
    Tuesday, March 6, 2012 8:29 AM

Answers

All replies

  • you want to create a HID miniport driver and present the pen data as HID to the OS. if using the win7 wdk, it is a KMDF HID miniport and use src\hid\hidusbfx2 as a starting point, you might have to rip out the usb part if your device is not usb based. if it is usb based and you want to use the win8 WDK, you can create a user mode driver, UMDF, hid based miniport, see the WudfVhidmini sample, http://code.msdn.microsoft.com/windowshardware/WudfVhidmini-Sample-b304f83a

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, March 6, 2012 5:17 PM
  • Thanks for the reply.

    Is there any example that describes the structure of the pen data that needs to be presented as HID Data. Also, on What kind of Feature/input reports that needs be communicated.

    To give more details, It is just application that get's its data from a socket. So, It mean I already had the data at the usermode application, I just need to upstream the data so that OS can recognize it.

    Tuesday, March 6, 2012 7:15 PM
  • you exposed sockets to an app from a local user mode driver? that sounds like a lot of work. you can't expose pen data to the OS through the app, it has to come from the hid miniport driver so that the hid stack can expose a HID top level collection for pen. the windows touch/pen input subsystem (wisptis.exe) will then open it and process the data.  a couple of links that will help

    http://msdn.microsoft.com/en-us/library/windows/hardware/ff543360(v=vs.85).aspx

    http://msdn.microsoft.com/en-us/library/windows/hardware/ff553719(v=vs.85).aspx

    and a doc, http://download.microsoft.com/download/a/d/f/adf1347d-08dc-41a4-9084-623b1194d4b2/DigitizerDrvs_touch.docx


    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by Pratap.k Wednesday, May 9, 2012 6:56 AM
    Tuesday, March 6, 2012 7:26 PM
  • I've already had processed data, so techincally I don't need to much reading from the device. As you said, I need to push it through HID Miniport driver for windows to recognize it.


    Quoted: " you can't expose pen data to the OS through the app, it has to come from the hid miniport driver so that the hid stack can expose a HID top level collection for pen. the windows touch/pen input subsystem (wisptis.exe) will then open it and process the data"


    I am just a doing it  as hobby/intrest and innovative idea.  Does this sound lots of work to you, It could save me efforts if I stop at this moment ?

    Thanks for your reply.


    • Edited by Pratap.k Tuesday, March 6, 2012 8:02 PM
    Tuesday, March 6, 2012 8:02 PM
  • it is a bunch of work to write the driver and make the data HID friendly. if you have not written a driver before, I would suggest you try the umdf hid miniport example in the win8 kit (it will run downlevel to vista) if you want to pursue this further.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, March 6, 2012 8:54 PM