diff options
Diffstat (limited to 'src/input_common')
| -rw-r--r-- | src/input_common/drivers/udp_client.cpp | 1 | ||||
| -rw-r--r-- | src/input_common/drivers/virtual_gamepad.h | 2 | ||||
| -rw-r--r-- | src/input_common/helpers/joycon_protocol/generic_functions.h | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/input_common/drivers/udp_client.cpp b/src/input_common/drivers/udp_client.cpp index 808b21069..77db60e92 100644 --- a/src/input_common/drivers/udp_client.cpp +++ b/src/input_common/drivers/udp_client.cpp | |||
| @@ -338,6 +338,7 @@ void UDPClient::StartCommunication(std::size_t client, const std::string& host, | |||
| 338 | for (std::size_t index = 0; index < PADS_PER_CLIENT; ++index) { | 338 | for (std::size_t index = 0; index < PADS_PER_CLIENT; ++index) { |
| 339 | const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index); | 339 | const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index); |
| 340 | PreSetController(identifier); | 340 | PreSetController(identifier); |
| 341 | PreSetMotion(identifier, 0); | ||
| 341 | } | 342 | } |
| 342 | } | 343 | } |
| 343 | 344 | ||
diff --git a/src/input_common/drivers/virtual_gamepad.h b/src/input_common/drivers/virtual_gamepad.h index dfbc45a28..3a40e3fd3 100644 --- a/src/input_common/drivers/virtual_gamepad.h +++ b/src/input_common/drivers/virtual_gamepad.h | |||
| @@ -67,7 +67,7 @@ public: | |||
| 67 | * @param player_index the player number that will take this action | 67 | * @param player_index the player number that will take this action |
| 68 | * @param delta_timestamp time passed since last reading | 68 | * @param delta_timestamp time passed since last reading |
| 69 | * @param gyro_x,gyro_y,gyro_z the gyro sensor readings | 69 | * @param gyro_x,gyro_y,gyro_z the gyro sensor readings |
| 70 | * @param accel_x,accel_y,accel_z the acelerometer reading | 70 | * @param accel_x,accel_y,accel_z the accelerometer reading |
| 71 | */ | 71 | */ |
| 72 | void SetMotionState(std::size_t player_index, u64 delta_timestamp, float gyro_x, float gyro_y, | 72 | void SetMotionState(std::size_t player_index, u64 delta_timestamp, float gyro_x, float gyro_y, |
| 73 | float gyro_z, float accel_x, float accel_y, float accel_z); | 73 | float gyro_z, float accel_x, float accel_y, float accel_z); |
diff --git a/src/input_common/helpers/joycon_protocol/generic_functions.h b/src/input_common/helpers/joycon_protocol/generic_functions.h index 90fcd17f6..b94567f82 100644 --- a/src/input_common/helpers/joycon_protocol/generic_functions.h +++ b/src/input_common/helpers/joycon_protocol/generic_functions.h | |||
| @@ -55,7 +55,7 @@ public: | |||
| 55 | 55 | ||
| 56 | /** | 56 | /** |
| 57 | * Configures the motion sensor with the specified parameters | 57 | * Configures the motion sensor with the specified parameters |
| 58 | * @param gsen gyroscope sensor sensitvity in degrees per second | 58 | * @param gsen gyroscope sensor sensitivity in degrees per second |
| 59 | * @param gfrec gyroscope sensor frequency in hertz | 59 | * @param gfrec gyroscope sensor frequency in hertz |
| 60 | * @param asen accelerometer sensitivity in G force | 60 | * @param asen accelerometer sensitivity in G force |
| 61 | * @param afrec accelerometer frequency in hertz | 61 | * @param afrec accelerometer frequency in hertz |