Click or drag to resize

PointerPointerButtonState Enumeration

The state of buttons for a pointer. Combines 3 types of button events: Pressed (holding a button), Down (just pressed this frame) and Up (released this frame).

Namespace:  TouchScript.Pointers
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[FlagsAttribute]
public enum PointerButtonState
Members
  Member nameValueDescription
Nothing0 No button is pressed.
FirstButtonPressed1 Indicates a primary action, analogous to a left mouse button down. A TouchPointer or ObjectPointer has this flag set when it is in contact with the digitizer surface. A PenPointer has this flag set when it is in contact with the digitizer surface with no buttons pressed. A MousePointer has this flag set when the left mouse button is down.
SecondButtonPressed2 Indicates a secondary action, analogous to a right mouse button down. A TouchPointer or ObjectPointer does not use this flag. A PenPointer has this flag set when it is in contact with the digitizer surface with the pen barrel button pressed. A MousePointer has this flag set when the right mouse button is down.
ThirdButtonPressed4 Analogous to a mouse wheel button down. A TouchPointer, PenPointer or ObjectPointer does not use this flag. A MousePointer has this flag set when the mouse wheel button is down.
FourthButtonPressed8 Analogous to the first extended button button down. A TouchPointer, PenPointer or ObjectPointer does not use this flag. A MousePointer has this flag set when the first extended button is down.
FifthButtonPressed16 Analogous to the second extended button button down. A TouchPointer, PenPointer or ObjectPointer does not use this flag. A MousePointer has this flag set when the second extended button is down.
FirstButtonDown2048 First button pressed this frame.
FirstButtonUp4096 First button released this frame.
SecondButtonDown8192 Second button pressed this frame.
SecondButtonUp16384 Second button released this frame.
ThirdButtonDown32768 Third button pressed this frame.
ThirdButtonUp65536 Third button released this frame.
FourthButtonDown131072 Fourth button pressed this frame.
FourthButtonUp262144 Fourth button released this frame.
FifthButtonDown524288 Fifth button pressed this frame.
FifthButtonUp1048576 Fifth button released this frame.
AnyButtonPressed31 Any button is pressed.
AnyButtonDown698368 Any button down this frame.
AnyButtonUp1396736 Any button up this frame.
See Also