pub enum MouseRequest {
AddDevice {
responder: MouseAddDeviceResponder,
},
SendInputReport {
device_id: u32,
report: MouseInputReport,
event_time: u64,
responder: MouseSendInputReportResponder,
},
}
Expand description
A protocol that allows the test to pretend to be a mouse and inject mouse cursor movement and button presses into the input pipeline.
Only minimally required mouse synthesis is exposed through the protocol. If you need to expose more functionality, feel free to add methods to this protocol.
Variants§
AddDevice
Fields
§
responder: MouseAddDeviceResponder
Add a new device for testing.
SendInputReport
Send input report to specified device. Returning empty tuple will block
the caller until the input report is dispatched. event_time
used as
the timestamp in the InputReport
, it doesn’t change the timing of
when the report is dispatched to the input pipeline.
Implementations§
source§impl MouseRequest
impl MouseRequest
pub fn into_add_device(self) -> Option<MouseAddDeviceResponder>
pub fn into_send_input_report( self ) -> Option<(u32, MouseInputReport, u64, MouseSendInputReportResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL