Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Pen events sample app for Surface Duo

This sample contains code to visualize events raised when using a Surface Pen with the Surface Duo. More information is available in the accompanying blog post.

Surface Duo pen app sample in 3D

Different pen states detected by the sample:

  • The green circle represents the point under the pen tip; its size is controlled by the pressure
  • The blue circle size represents the pressure; it will turn pink if the button is pressed
  • The red triangle represents the orientation
  • If an eraser is used, the shapes will become outlines
Low pressure visualization HIgh pressure visualization Detecting barrel button press Detecting erasure
Pen with low pressure Pen with high pressure Pen with the barrel button pressed Pen held upside down with the eraser on the screen

Related links

This sample is also available in Kotlin.