Tablet pen pressure - how to?



  • I'm either too blind or too stupid to find something on that subject, but ... how do you get the pen pressure from a graphics tablet and find out if the user is drawing with the eraser ... in Windows? It would be nice if someone knew if that's possible with SDL, but ... any information would be nice. I don't know what to google for anymore, and searching MSDN is ... well ... not exactly helpful.



  • http://www.wacomeng.com/devsupport/ibmpc/wacomwindevfaq.html#FAQ1.4

     
     



  • Microsoft screwed up (again), and the Windows pointer API simply can't do it. You have to use a proprietary library supplied by your tablet manufacturer.



  • Are you talking about a Tablet PC ?

    then look here: http://msdn2.microsoft.com/en-us/library/ms704849.aspx

     btw: it took me more time to register to the forum than looking it up in the MSDN library
     



  • Thanks!

    Not tablet PC, Wacom tablets. Wintab is what I need, thanks, I hope I can link that with D; as far as I've seen with a quick newsgroup search there are some problems with the calling convention *sigh*. I wasn't aware that it's not possible with the Windows API - really, I just assumed that it's there - how hard can it be? It's just logical to expect some kind of struct MOUSEPOINTEREX or something.



  • perhaps this might also help you:

    http://msdn2.microsoft.com/en-us/library/ms645536.aspx 



  • @vertex said:

    I wasn't aware that it's not possible with the Windows API - really, I just assumed that it's there - how hard can it be? It's just logical to expect some kind of struct MOUSEPOINTEREX or something.

    It's really easy (everything except Windows does it). There is no excuse for their failure to support it. They just didn't.



  • @asuffield said:

    @vertex said:

    I wasn't aware that it's not possible with the Windows API - really, I just assumed that it's there - how hard can it be? It's just logical to expect some kind of struct MOUSEPOINTEREX or something.

    It's really easy (everything except Windows does it). There is no excuse for their failure to support it. They just didn't.

    I bought my brother a Wacom tablet.  It works better in Linux than Windows.
     



  • @daniel c w said:

    perhaps this might also help you:

    http://msdn2.microsoft.com/en-us/library/ms645536.aspx 

    I'm currently handling input via SDL, afaik SDL does raw input anyway. I'll give it a couple hours to see if I can easily poll the pen pressure when I need it. If it doesn't work I'll screw the idea. All that hassle just for the odd chance that someone besides me has a tablet ... not worth it.


Log in to reply