Struct
InjectKey
pub struct InjectKey {
pub is_pressed: bool,
pub key: Key,
}Expand description
Injects a key press or release event into the active app as if it came from the keyboard. Works on both hardware and simulator — used by the passport-drive debug bridge.
Fields
is_pressed: boolkey: KeyTrait Implementations
impl AsScalar<3> for InjectKey
impl AsScalar<3> for InjectKey
fn as_scalar(&self) -> [u32; 3]
impl Debug for InjectKey
impl Debug for InjectKey
impl FromScalar<3> for InjectKey
impl FromScalar<3> for InjectKey
fn from_scalar([is_pressed, kind, val]: [u32; 3]) -> Self
impl MessageId for InjectKey
impl MessageId for InjectKey
const ID: MessageId = 56usize
const ID: MessageId = 56usize
unique message identifier
const SERVER: &'static str = "os/gui-server"
const SERVER: &'static str = "os/gui-server"
target server name