NvGestureKind Struct Reference

These are the kinds of resulting gestures that we recognize. More...

#include <NvGestureEvent.h>

List of all members.

Public Types

enum  Enum {
  MASK_BASE = 0x00FF, MASK_HELD = 0x0100, MASK_RELEASED = 0x0200, MASK_MOVED = 0x0400,
  MASK_MULTI = 0x0800, MASK_MAYBE = 0x1000, MASK_REPEAT_DOUBLE = 0x2000, MASK_REPEAT_TRIPLE = 0x4000,
  INVALID = -1, NONE = 0, HOVER = 1, PRESS = 3,
  HOLD = 4 | MASK_HELD, RELEASE = 6 | MASK_RELEASED, MAYBE_TAP = 8 | MASK_RELEASED | MASK_MAYBE, TAP = 9 | MASK_RELEASED,
  DRAG = 10 | MASK_MOVED, FLICK = 11 | MASK_MOVED | MASK_RELEASED, DOUBLETAP = TAP | MASK_REPEAT_DOUBLE
}


Detailed Description

These are the kinds of resulting gestures that we recognize.


Member Enumeration Documentation

Enumerator:
MASK_BASE  Special bit masks for classification of types of gestures.

For masking off low byte for raw event

MASK_HELD  Event involves device being held 'down' for some period.
MASK_RELEASED  Event involves a 'release' up of input.
MASK_MOVED  Event involves some movement input device.
MASK_MULTI  Event involves multiple inputs, i.e.

multi-finger touch

MASK_MAYBE  Hint that event is conditional on a later timeout.
MASK_REPEAT_DOUBLE  Base event occurred twice within short period.
MASK_REPEAT_TRIPLE  Base event occurred three times in short period.
INVALID  The set of recognized gesture values.

Denotes an invalid value

NONE  Base value, no gesture has occurred yet.
HOVER  Denotes a pointer hovering on screen but no press/click yet.

PRESS  Pointer has been pressed down, clicked.
HOLD  Pointer has been kept down past a particular timeout.
RELEASE  Pointer has been kept down past a longer timeout.

Pointer has been released, let up

MAYBE_TAP  A short tap occurred, but we haven't confirmed user intent yet due to timeout or new event.
TAP  A brief tap was confirmed (either because double-tap delay passed, or other event began).
DRAG  Pointer is down and has moved from its starting point enough to intend to 'drag'.
FLICK  Pointer was released during accelerating motion vector.
DOUBLETAP  Pointer has come back down again within a small delta distance and time of a prior tap.


The documentation for this struct was generated from the following file: