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?);
    }
} 
  •   RT @tfsbuck: Here are some great new articles on being Agile: https://t.co/OmdfxV5b3Y #vsts https://t.co/TmcyizCl1B
  •   @vsreleasemgmt i want to prevent that
  •   @vsreleasemgmt says: With scheduled triggers, new release is created even if a newer version is not available since last release (1/2)
  •   RT @tfsbuck: How do we deploy VS Team Services? We use Team Services Release Management, of course. Here's part 1. https://t.co/vkOKqOcOG…
  •   RT @scottgu: I'll be doing an all day developer event in Amsterdam on May 24th. Learn more and register: https://t.co/aC5xSNTcnb
  •   @hermitdave not enough apps to fill up?
  •   @vsreleasemgmt I have a daily release of my app to winstore via RM. Is it possible to only create release when there is a new build?
  •   RT @aafvstam: "Outlook Customer Manager now rolling out worldwide with enhanced capabilities" https://t.co/Osk4kZ2wZ6 #Office
  •   @cliffsimpkins @mahoekst @mtaulty what about call it windows 11? :)
  •   RT @mjalaf: A new #VisualStudio @Code extension for #AzureFunctions Tools. Download: https://t.co/AuNPzihM6S https://t.co/RaKdG83UnT