Enum ndk::event::InputEvent [−][src]
pub enum InputEvent {
MotionEvent(MotionEvent),
KeyEvent(KeyEvent),
}
Expand description
Variants
MotionEvent(MotionEvent)
Tuple Fields
0: MotionEvent
KeyEvent(KeyEvent)
Tuple Fields
0: KeyEvent
Implementations
Initialize an InputEvent
from a pointer
Safety
By calling this function, you assert that the pointer is a valid pointer to a
native AInputEvent
.
Returns a pointer to the native AInputEvent
.
Get the source of the event.
See the NDK docs
Get the device id associated with the event.
See the NDK docs