mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-28 05:45:38 -06:00
thank you -Wsizeof-array-argument for being smarter than me
This commit is contained in:
parent
12f5403214
commit
e11c977f2d
@ -115,12 +115,12 @@ void GameController::Acceleration(int id) {
|
||||
|
||||
void GameController::UpdateGyro(const float gyro[3]) {
|
||||
std::lock_guard lg(m_states_queue_mutex);
|
||||
std::memcpy(gyro_buf, gyro, sizeof(gyro));
|
||||
std::memcpy(gyro_buf, gyro, sizeof(gyro_buf));
|
||||
}
|
||||
|
||||
void GameController::UpdateAcceleration(const float acceleration[3]) {
|
||||
std::lock_guard lg(m_states_queue_mutex);
|
||||
std::memcpy(accel_buf, acceleration, sizeof(acceleration));
|
||||
std::memcpy(accel_buf, acceleration, sizeof(accel_buf));
|
||||
}
|
||||
|
||||
void GameController::CalculateOrientation(Libraries::Pad::OrbisFVector3& acceleration,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user