Enum ndk::event::InputEvent[][src]

pub enum InputEvent {
    MotionEvent(MotionEvent),
    KeyEvent(KeyEvent),
}
Expand description

Variants

MotionEvent(MotionEvent)

Tuple Fields

KeyEvent(KeyEvent)

Tuple Fields

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

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Look up the concrete type from the JVM.

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.