public class EventPointer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMMON_MICROUI_GENERATOR_TAG
Usual MicroUI Pointer generator tag used in platform configuration project (
microui.xml ). |
Modifier and Type | Method and Description |
---|---|
static void |
sendMovedEvent(int x,
int y,
boolean absolute)
Send a MOVE event to the event generator with the MicroUI generator tag
COMMON_MICROUI_GENERATOR_TAG . |
static void |
sendMovedEvent(String pointerEventGenerator,
int x,
int y,
boolean absolute)
Send a MOVE event to the event generator.
|
static void |
sendPressedEvent(int buttonId,
int x,
int y,
boolean absolute)
Send a PRESSED event to the event generator with the MicroUI generator tag
COMMON_MICROUI_GENERATOR_TAG . |
static void |
sendPressedEvent(String pointerEventGenerator,
int buttonId,
int x,
int y,
boolean absolute)
Send a PRESSED event to the event generator.
|
static void |
sendReleasedEvent(int buttonId)
Send a RELEASED event to the event generator with the MicroUI generator tag
COMMON_MICROUI_GENERATOR_TAG . |
static void |
sendReleasedEvent(String pointerEventGenerator,
int buttonId)
Send a RELEASED event to the event generator.
|
public static final String COMMON_MICROUI_GENERATOR_TAG
microui.xml
).public static void sendMovedEvent(int x, int y, boolean absolute)
COMMON_MICROUI_GENERATOR_TAG
.x
- the pointer X coordinate.y
- the pointer Y coordinate.absolute
- true
when (x,y) coordinates are absolute, false
when there are relative to
the previous pointer position.sendMovedEvent(String, int, int, boolean)
public static void sendMovedEvent(String pointerEventGenerator, int x, int y, boolean absolute)
The result of this method is unknown when the given event generator is not a MicroUI Pointer
event
generator.
pointerEventGenerator
- the MicroUI Pointer
event generator.x
- the pointer X coordinate.y
- the pointer Y coordinate.absolute
- true
when (x,y) coordinates are absolute, false
when there are relative to
the previous pointer position.public static void sendPressedEvent(int buttonId, int x, int y, boolean absolute)
COMMON_MICROUI_GENERATOR_TAG
.buttonId
- the button ID, between 0 and 255.x
- the pointer X coordinate.y
- the pointer Y coordinate.absolute
- true
when (x,y) coordinates are absolute, false
when there are relative to
the previous pointer position.sendPressedEvent(String, int, int, int, boolean)
public static void sendPressedEvent(String pointerEventGenerator, int buttonId, int x, int y, boolean absolute)
The result of this method is unknown when the given event generator is not a MicroUI Pointer
event
generator.
pointerEventGenerator
- the MicroUI Pointer
event generator.buttonId
- the button ID, between 0 and 255.x
- the pointer X coordinate.y
- the pointer Y coordinate.absolute
- true
when (x,y) coordinates are absolute, false
when there are relative to
the previous pointer position.public static void sendReleasedEvent(int buttonId)
COMMON_MICROUI_GENERATOR_TAG
.buttonId
- the button ID, between 0 and 255.sendReleasedEvent(String, int)
public static void sendReleasedEvent(String pointerEventGenerator, int buttonId)
The result of this method is unknown when the given event generator is not a MicroUI Pointer
event
generator.
pointerEventGenerator
- the MicroUI Pointer
event generator.buttonId
- the button ID, between 0 and 255.