public class DispatchHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
dispatchButton(int event,
ButtonEventHandler buttonEventHandler)
Dispatch button events.
|
static boolean |
dispatchEvent(int event,
EventGeneratorsHandler eventGeneratorsHandler)
Dispatch MicroUI events.
|
static boolean |
dispatchPointer(int event,
PointerEventHandler pointerEventHandler)
Dispatch pointer events.
|
public static boolean dispatchEvent(int event, EventGeneratorsHandler eventGeneratorsHandler)
event
- the event to dispatch.eventGeneratorsHandler
- the handler to dispatch to.true
if the event is consumed, false
otherwise.public static boolean dispatchButton(int event, ButtonEventHandler buttonEventHandler)
event
- the event to dispatch.buttonEventHandler
- the handler to dispatch to.true
if the event is consumed, false
otherwise.public static boolean dispatchPointer(int event, PointerEventHandler pointerEventHandler)
event
- the event to dispatch.pointerEventHandler
- the handler to dispatch to.true
if the event is consumed, false
otherwise.