public class

PenEvent

extends Object
java.lang.Object
   ↳ com.htc.pen.PenEvent

Summary

Constants
int PEN_ACTION_DOWN Constant for ERROR(/#getAction): A pressed gesture has started, the motion contains the initial starting location.
int PEN_ACTION_MOVE Constant for ERROR(/#getAction): A change has happened during a press gesture (between ERROR(/#ACTION_PEN_DOWN) and ERROR(/#ACTION_PEN_UP)).
int PEN_ACTION_UP Constant for ERROR(/#getAction): A pressed gesture has finished, the motion contains the final release location as well as any intermediate points since the last down or move event.
int PEN_BUTTON1 Pen event: Lower pen button has gone down.
int PEN_BUTTON2 Pen event: Upper pen button has gone down.
int PEN_BUTTON_NONE Pen event: None pen button has gone down.
int PEN_MOVE_BUTTON1_DOWN Pen event: Lower pen button has gone down while moving.
int PEN_MOVE_BUTTON1_UP Pen event: Lower pen button has gone up while moving.
int PEN_MOVE_BUTTON2_DOWN Pen event: Upper pen button has gone down while moving.
int PEN_MOVE_BUTTON2_UP Pen event: Upper pen button has gone up while moving.
int SOURCE_PEN_TOUCHSCREEN Pen Source: define the pen source.
Public Constructors
PenEvent()
Public Methods
static int PenAction(MotionEvent event)
static int PenButton(MotionEvent event)
static boolean isPenEvent(MotionEvent event)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int PEN_ACTION_DOWN

Constant for ERROR(/#getAction): A pressed gesture has started, the motion contains the initial starting location.

Constant Value: 30 (0x0000001e)

public static final int PEN_ACTION_MOVE

Constant for ERROR(/#getAction): A change has happened during a press gesture (between ERROR(/#ACTION_PEN_DOWN) and ERROR(/#ACTION_PEN_UP)). The pen motion contains the most recent point, as well as any intermediate points since the last down or move event.

Constant Value: 32 (0x00000020)

public static final int PEN_ACTION_UP

Constant for ERROR(/#getAction): A pressed gesture has finished, the motion contains the final release location as well as any intermediate points since the last down or move event.

Constant Value: 31 (0x0000001f)

public static final int PEN_BUTTON1

Pen event: Lower pen button has gone down. The bits in indicate which pen button changed.

Constant Value: 41 (0x00000029)

public static final int PEN_BUTTON2

Pen event: Upper pen button has gone down. The bits in indicate which pen button changed.

Constant Value: 42 (0x0000002a)

public static final int PEN_BUTTON_NONE

Pen event: None pen button has gone down. The bits in indicate which pen button changed.

Constant Value: 40 (0x00000028)

public static final int PEN_MOVE_BUTTON1_DOWN

Pen event: Lower pen button has gone down while moving.

Constant Value: 261 (0x00000105)

public static final int PEN_MOVE_BUTTON1_UP

Pen event: Lower pen button has gone up while moving.

Constant Value: 262 (0x00000106)

public static final int PEN_MOVE_BUTTON2_DOWN

Pen event: Upper pen button has gone down while moving.

Constant Value: 517 (0x00000205)

public static final int PEN_MOVE_BUTTON2_UP

Pen event: Upper pen button has gone up while moving.

Constant Value: 518 (0x00000206)

public static final int SOURCE_PEN_TOUCHSCREEN

Pen Source: define the pen source.

Constant Value: 16386 (0x00004002)

Public Constructors

public PenEvent ()

Public Methods

public static int PenAction (MotionEvent event)

public static int PenButton (MotionEvent event)

public static boolean isPenEvent (MotionEvent event)