pub struct InputQueue { /* private fields */ }
Expand description

A native AInputQueue *

An input queue is the facility through which you retrieve input events.

Implementations

Construct an InputQueue from the native pointer.

Safety

By calling this function, you assert that the pointer is a valid pointer to an NDK ffi::AInputQueue.

Returns the next available InputEvent from the queue.

Returns None if no event is available.

Returns true if there are one or more events available in the input queue.

Sends the key for standard pre-dispatching that is, possibly deliver it to the current IME to be consumed before the app.

Returns Some if it was not pre-dispatched, meaning you can process it right now. If None is returned, you must abandon the current event processing and allow the event to appear again in the event queue (if it does not get consumed during pre-dispatching).

Also returns None if event is not a KeyEvent.

Report that dispatching has finished with the given InputEvent.

This must be called after receiving an event with InputQueue::get_event().

Add this input queue to a ForeignLooper for processing.

See ForeignLooper::add_fd() for information on the ident, callback, and data params.

Remove this input queue from the ForeignLooper it is currently attached to.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.