Skip to content

Commit

Permalink
feature: implement the PointerUpdateKind Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuntley committed Sep 5, 2019
1 parent f0907c3 commit c22dfac
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,4 @@
#pragma warning disable 114 // new keyword hiding
namespace Windows.UI.Input
{
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
#endif
public enum PointerUpdateKind
{
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
Other,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
LeftButtonPressed,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
LeftButtonReleased,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
RightButtonPressed,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
RightButtonReleased,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
MiddleButtonPressed,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
MiddleButtonReleased,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
XButton1Pressed,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
XButton1Released,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
XButton2Pressed,
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__
XButton2Released,
#endif
}
#endif
}
54 changes: 54 additions & 0 deletions src/Uno.UWP/UI/Input/PointerUpdateKind.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Windows.UI.Input
{
public enum PointerUpdateKind
{
/// <summary>
/// Pointer updates not identified by other PointerUpdateKind values.
/// </summary>
Other = 0,
/// <summary>
/// Left button pressed.
/// </summary>
LeftButtonPressed = 1,
/// <summary>
/// Left button released.
/// </summary>
LeftButtonReleased = 2,
/// <summary>
/// Right button pressed.
/// </summary>
RightButtonPressed = 3,
/// <summary>
/// Right button released.
/// </summary>
RightButtonReleased = 4,
/// <summary>
/// Middle button pressed.
/// </summary>
MiddleButtonPressed = 5,
/// <summary>
/// Middle button released.
/// </summary>
MiddleButtonReleased = 6,
/// <summary>
/// XBUTTON1 pressed.
/// </summary>
XButton1Pressed = 7,
/// <summary>
/// XBUTTON1 released.
/// </summary>
XButton1Released = 8,
/// <summary>
/// XBUTTON2 pressed.
/// </summary>
XButton2Pressed = 9,
/// <summary>
/// XBUTTON2 released.
/// </summary>
XButton2Released = 10,
}
}

0 comments on commit c22dfac

Please sign in to comment.