Hi guys,
Using WSANative plugin to check if a Surface user is using Surface Pen eraser on my coloring application.
Is this possible to get working with il2cpp?
Or any other way to check if Pen is used?
From MainPage.xaml.cs
private void ConfigureInput()
{
Window.Current.CoreWindow.PointerPressed += (s, e) =>
{
if (WSANativeInput.PointerPressed != null)
{
PointerPointProperties pointerProperties = e.CurrentPoint.Properties;
try
{
WSANativeInput.PointerPressed(new WSAPointerProperties()
{
InputType = e.CurrentPoint.PointerDevice.PointerDeviceType == PointerDeviceType.Touch ? WSAInputType.Touch :
e.CurrentPoint.PointerDevice.PointerDeviceType == PointerDeviceType.Pen ? WSAInputType.Pen : WSAInputType.Mouse,
IsLeftButtonPressed = pointerProperties.IsLeftButtonPressed,
IsRightButtonPressed = pointerProperties.IsRightButtonPressed,
IsEraser = pointerProperties.IsEraser,
IsInverted = pointerProperties.IsInverted
});
}
catch
{
}
}
};
}