Skip to main content

InputQueryConfig

Trait InputQueryConfig 

Source
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§

Source

fn query_device_name( &self, name_buf: &mut [u8], ) -> Result<u8, InputBackendError>

Query device name into provided buffer

Source

fn query_serial_name( &self, name_buf: &mut [u8], ) -> Result<u8, InputBackendError>

Query device name into provided buffer

Source

fn query_device_ids( &self, ids: &mut InputDeviceIds, ) -> Result<(), InputBackendError>

Query device IDs into provided structure

Source

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

Source

fn query_abs_info( &self, abs_axis: u8, abs_info: &mut InputAbsInfo, ) -> Result<(), InputBackendError>

Query absolute axis information into provided structure

Source

fn query_properties( &self, properties: &mut [u8], ) -> Result<u8, InputBackendError>

Query device properties into provided u32

Implementors§