pub struct LinuxControllerConfig {
pub screencap_method: MaaLinuxScreencapMethod,
pub input_method: MaaLinuxInputMethod,
pub wlr_socket_path: Option<String>,
pub pw_socket_fd: Option<i32>,
pub pw_node_id: Option<u32>,
pub pw_screen_width: Option<i32>,
pub pw_screen_height: Option<i32>,
pub uinput_path: Option<String>,
pub use_win32_vk_code: Option<bool>,
}Expand description
Configuration for crate::controller::Controller::new_linux.
Fields§
§screencap_method: MaaLinuxScreencapMethodScreencap method. Use LinuxScreencapMethod::bits to obtain the value.
input_method: MaaLinuxInputMethodInput method. Use LinuxInputMethod::bits to obtain the value.
wlr_socket_path: Option<String>Wayland socket path required by WLR screencap or input.
pw_socket_fd: Option<i32>PipeWire socket file descriptor.
pw_node_id: Option<u32>PipeWire node ID.
pw_screen_width: Option<i32>PipeWire stream width in pixels.
pw_screen_height: Option<i32>PipeWire stream height in pixels.
uinput_path: Option<String>UInput device path. MaaFramework defaults to /dev/uinput when omitted.
use_win32_vk_code: Option<bool>Interpret key codes as Win32 virtual-key codes instead of raw evdev codes.
Trait Implementations§
Source§impl Clone for LinuxControllerConfig
impl Clone for LinuxControllerConfig
Source§fn clone(&self) -> LinuxControllerConfig
fn clone(&self) -> LinuxControllerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LinuxControllerConfig
impl Debug for LinuxControllerConfig
Source§impl<'de> Deserialize<'de> for LinuxControllerConfig
impl<'de> Deserialize<'de> for LinuxControllerConfig
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
impl Eq for LinuxControllerConfig
Source§impl PartialEq for LinuxControllerConfig
impl PartialEq for LinuxControllerConfig
Source§impl Serialize for LinuxControllerConfig
impl Serialize for LinuxControllerConfig
impl StructuralPartialEq for LinuxControllerConfig
Auto Trait Implementations§
impl Freeze for LinuxControllerConfig
impl RefUnwindSafe for LinuxControllerConfig
impl Send for LinuxControllerConfig
impl Sync for LinuxControllerConfig
impl Unpin for LinuxControllerConfig
impl UnsafeUnpin for LinuxControllerConfig
impl UnwindSafe for LinuxControllerConfig
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