Recent

Pen identity in UWP

When you are building apps for the Surface Hub you can use a real cool inking feature. The screen is already amazing with 84" and the pen support. But the pens also have an identity. This is a number and when you match this up with a credential you can do awesome things.

To get the pen identity you need few simple lines of code. I build an extension method for that:

public static class PointerPointPropertiesExtensions
{
    private const uint WirelessIdUsagePage = 0x0D;
    private const uint WirelessIdUsage = 0x5B;

    public static int? GetPenId(this PointerPointProperties pointerProperties)
    {
        var hasId = pointerProperties.HasUsage(WirelessIdUsagePage, WirelessIdUsage);
        return hasId ? pointerProperties.GetUsageValue(WirelessIdUsagePage, WirelessIdUsage) : default(int?);
    }
} 
  •   @jeromevdheuvel and I just published a new @VSTS extension: Project Teams; and easier way to navigate between teams! https://t.co/bxZZo1MN2g
  •   @Depechie @LocalJoost @gcaughey see you guys there. leaving a week earlier
  •   RT @windowsblog: Windows 10 SDK Preview Build 17035 now available https://t.co/4e85Jy9Hyl
  •   @aaronbjork Looking forward! Will be watchin
  •   @vsts do release gates have extension points (can build something reusable?) or have to use azure function for custom code?
  •   @aaronbjork no new features for work area at connect? (not able to see live stream, just follow twitter)
  •   @tfsbuck i am missing bring your own build image feature ? change of plan?
  •   RT @ClintRutkas: some great sessions pending! watch over at https://t.co/GHBzZX9qPD https://t.co/8caL8O02t9
  •   @twenteairport als met GA vlucht keer van EHHV naar jullie wil kan dat? moet ik eerst toestemming vragen?
  •   @JenMsft do you know of the .net framework oktober quality rollupd is already in the FCU? https://t.co/BKudxFuU6X