[−][src]Trait subor_rs::input_manager_s_d_k_services::TInputManagerServiceSyncClient
Required methods
fn get_connected_gamepads(&mut self) -> Result<Vec<GamepadInfo>>
Get the gamepads that are connected corrently
fn set_gamepad_vibration(
&mut self,
device_id: String,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool>
&mut self,
device_id: String,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool>
Activate the vibration of gamepad
fn set_gamepad_light(
&mut self,
device_id: String,
r_value: i8,
g_value: i8,
b_value: i8
) -> Result<bool>
&mut self,
device_id: String,
r_value: i8,
g_value: i8,
b_value: i8
) -> Result<bool>
Change the light of gamepad (for ruyi controller only)
fn set_ruyi_controller_status(
&mut self,
channel: i8,
enable_r: bool,
enable_g: bool,
enable_b: bool,
enable_motor1: bool,
enable_motor2: bool,
shutdown: bool,
r_value: i8,
g_value: i8,
b_value: i8,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool>
&mut self,
channel: i8,
enable_r: bool,
enable_g: bool,
enable_b: bool,
enable_motor1: bool,
enable_motor2: bool,
shutdown: bool,
r_value: i8,
g_value: i8,
b_value: i8,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool>
Obsolete. Temporary api the change the ruyi controller's state, will be removed later.
Implementors
impl<C: TThriftClient + TInputManagerServiceSyncClientMarker> TInputManagerServiceSyncClient for C
[src]
fn get_connected_gamepads(&mut self) -> Result<Vec<GamepadInfo>>
[src]
fn set_gamepad_vibration(
&mut self,
device_id: String,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool>
[src]
&mut self,
device_id: String,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool>
fn set_gamepad_light(
&mut self,
device_id: String,
r_value: i8,
g_value: i8,
b_value: i8
) -> Result<bool>
[src]
&mut self,
device_id: String,
r_value: i8,
g_value: i8,
b_value: i8
) -> Result<bool>
fn set_ruyi_controller_status(
&mut self,
channel: i8,
enable_r: bool,
enable_g: bool,
enable_b: bool,
enable_motor1: bool,
enable_motor2: bool,
shutdown: bool,
r_value: i8,
g_value: i8,
b_value: i8,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool>
[src]
&mut self,
channel: i8,
enable_r: bool,
enable_g: bool,
enable_b: bool,
enable_motor1: bool,
enable_motor2: bool,
shutdown: bool,
r_value: i8,
g_value: i8,
b_value: i8,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool>