# Access Windows pen data in Processing

**URL:** <https://discourse.processing.org/t/access-windows-pen-data-in-processing/7094>\
**Category:** Libraries\
**Created:** [January 2, 2019, 8:25am UTC](https://discourse.processing.org/t/access-windows-pen-data-in-processing/7094 "2019-01-02T08:25:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roi\_tau](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@roi\_tau](https://discourse.processing.org/u/roi_tau)\
**Post date:** [January 2, 2019, 8:25am UTC](https://discourse.processing.org/t/access-windows-pen-data-in-processing/7094/1 "2019-01-02T08:25:39Z")

</div>

Hello Guys,

First, let me just say that I LOVE processing and “The coding train” is the channel I watch the most.

Having said it, there is a wonderful library written by Andres Colubri named [Tablet](http://processing.andrescolubri.net/libraries/tablet/).

Alas, this library only works with Wacom tablet.

Is there a way to access the windows-pen tablets data (pressure and tilt) via processing?

Many thanks in advance

Roi

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [January 15, 2019, 1:05am UTC](https://discourse.processing.org/t/access-windows-pen-data-in-processing/7094/2 "2019-01-15T01:05:16Z")

</div>

> [@roi\_tau](#):
>
> windows-pen tablets

Sorry that I’m not familiar with these. Is this a specific product, or something specific to one windows operating system, or models like the Surface series? Is it documented anywhere? If we know more, we could help you look, even if we don’t already know the answer. I’m assuming you would be looking for a Java API – which a Java library could then use, which Processing could then use.

---

<div class="post-metadata">

**Author:** ![roi\_tau](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@roi\_tau](https://discourse.processing.org/u/roi_tau)\
**Post date:** [January 16, 2019, 7:52am UTC](https://discourse.processing.org/t/access-windows-pen-data-in-processing/7094/3 "2019-01-16T07:52:16Z")

</div>

Hi Jermy and thanks for your kind answer.

I think [this](http://www.michaelmcguffin.com/code/JWinPointer/) JAVA library can handle it.

I also need the tilt value of the pen if it is possible.

So far the tablet library dosent work with the windows active pen.

Many thanks in advance

As time goes by, I see these pens are getting more and more common.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [January 17, 2019, 7:09am UTC](https://discourse.processing.org/t/access-windows-pen-data-in-processing/7094/4 "2019-01-17T07:09:28Z")

</div>

> [@roi\_tau](#):
>
> can handle it

So you mean generic Windows 10 stylus events – OS stuff, right? Not a special tablet peripheral.

I’m not sure about tilt with JWinPointer or JPen. Possibly relevant JDK ticket:

[https://bugs.openjdk.java.net/browse/JDK-8193925](https://bugs.openjdk.java.net/browse/JDK-8193925)
