pub struct DeviceCapabilities {
pub has_analog_stick: bool,
pub has_hat_switch: bool,
pub joystick_button_count: usize,
pub led_zones: Vec<String>,
}Expand description
Device capability information
This structure provides detailed capability information for a device, allowing the GUI to enable/disable relevant UI elements based on actual device hardware capabilities.
Fields§
§has_analog_stick: boolDevice has analog stick (absolute X/Y axes)
has_hat_switch: boolDevice has hat switch (D-pad with ABS_HAT0X/ABS_HAT0Y)
Number of joystick buttons (BTN_JOYSTICK range)
led_zones: Vec<String>LED zones available (empty if none, populated in Phase 12)
Trait Implementations§
Source§impl Clone for DeviceCapabilities
impl Clone for DeviceCapabilities
Source§fn clone(&self) -> DeviceCapabilities
fn clone(&self) -> DeviceCapabilities
Returns a duplicate 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 moreSource§impl Debug for DeviceCapabilities
impl Debug for DeviceCapabilities
Source§impl Default for DeviceCapabilities
impl Default for DeviceCapabilities
Source§impl<'de> Deserialize<'de> for DeviceCapabilities
impl<'de> Deserialize<'de> for DeviceCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeviceCapabilities
impl PartialEq for DeviceCapabilities
Source§impl Serialize for DeviceCapabilities
impl Serialize for DeviceCapabilities
impl StructuralPartialEq for DeviceCapabilities
Auto Trait Implementations§
impl Freeze for DeviceCapabilities
impl RefUnwindSafe for DeviceCapabilities
impl Send for DeviceCapabilities
impl Sync for DeviceCapabilities
impl Unpin for DeviceCapabilities
impl UnsafeUnpin for DeviceCapabilities
impl UnwindSafe for DeviceCapabilities
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