Struct input_device::InputDevice
source · pub struct InputDevice { /* private fields */ }
Implementations§
source§impl InputDevice
impl InputDevice
pub fn new_touch( display_width: i32, display_height: i32, inspect_node: &Node ) -> Arc<Self>
pub fn new_keyboard(inspect_node: &Node) -> Arc<Self>
pub fn register<L>(
self: Arc<Self>,
locked: &mut Locked<'_, L>,
system_task: &CurrentTask
)where
L: LockBefore<FileOpsCore>,
sourcepub fn start_touch_relay(
self: &Arc<Self>,
kernel: &Kernel,
touch_source_proxy: TouchSourceSynchronousProxy
)
pub fn start_touch_relay( self: &Arc<Self>, kernel: &Kernel, touch_source_proxy: TouchSourceSynchronousProxy )
Starts reading events from the Fuchsia input system, and making those events available to the guest system.
This method should be called as soon as possible after the TouchSourceProxy
has been
registered with the TouchSource
server, as the server expects TouchSource
clients to
consume events in a timely manner.
§Parameters
touch_source_proxy
: a connection to the Fuchsia input system, which will provide touch events associated with the FuchsiaView
created by Starnix.
pub fn start_keyboard_relay( self: &Arc<Self>, kernel: &Kernel, keyboard: KeyboardSynchronousProxy, view_ref: ViewRef )
Trait Implementations§
source§impl Clone for InputDevice
impl Clone for InputDevice
source§fn clone(&self) -> InputDevice
fn clone(&self) -> InputDevice
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InputDevice
impl !RefUnwindSafe for InputDevice
impl Send for InputDevice
impl Sync for InputDevice
impl Unpin for InputDevice
impl !UnwindSafe for InputDevice
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
source§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoAny for T
impl<T> IntoAny for T
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.