pub trait InputQueryConfig {
// Required methods
fn query_device_name(
&self,
name_buf: &mut [u8],
) -> Result<u8, InputBackendError>;
fn query_serial_name(
&self,
name_buf: &mut [u8],
) -> Result<u8, InputBackendError>;
fn query_device_ids(
&self,
ids: &mut InputDeviceIds,
) -> Result<(), InputBackendError>;
fn query_event_capabilities(
&self,
event_type: u8,
bitmap_buf: &mut [u8],
) -> Result<u8, InputBackendError>;
fn query_abs_info(
&self,
abs_axis: u8,
abs_info: &mut InputAbsInfo,
) -> Result<(), InputBackendError>;
fn query_properties(
&self,
properties: &mut [u8],
) -> Result<u8, InputBackendError>;
}Required Methods§
Sourcefn query_device_name(
&self,
name_buf: &mut [u8],
) -> Result<u8, InputBackendError>
fn query_device_name( &self, name_buf: &mut [u8], ) -> Result<u8, InputBackendError>
Query device name into provided buffer
Sourcefn query_serial_name(
&self,
name_buf: &mut [u8],
) -> Result<u8, InputBackendError>
fn query_serial_name( &self, name_buf: &mut [u8], ) -> Result<u8, InputBackendError>
Query device name into provided buffer
Sourcefn query_device_ids(
&self,
ids: &mut InputDeviceIds,
) -> Result<(), InputBackendError>
fn query_device_ids( &self, ids: &mut InputDeviceIds, ) -> Result<(), InputBackendError>
Query device IDs into provided structure
Sourcefn query_event_capabilities(
&self,
event_type: u8,
bitmap_buf: &mut [u8],
) -> Result<u8, InputBackendError>
fn query_event_capabilities( &self, event_type: u8, bitmap_buf: &mut [u8], ) -> Result<u8, InputBackendError>
Query event capabilities bitmap for specific event type into provided buffer
Sourcefn query_abs_info(
&self,
abs_axis: u8,
abs_info: &mut InputAbsInfo,
) -> Result<(), InputBackendError>
fn query_abs_info( &self, abs_axis: u8, abs_info: &mut InputAbsInfo, ) -> Result<(), InputBackendError>
Query absolute axis information into provided structure
Sourcefn query_properties(
&self,
properties: &mut [u8],
) -> Result<u8, InputBackendError>
fn query_properties( &self, properties: &mut [u8], ) -> Result<u8, InputBackendError>
Query device properties into provided u32