mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Fix some warnings
This commit is contained in:
parent
415c2d0795
commit
3381a884d0
5 changed files with 10 additions and 10 deletions
|
@ -5481,7 +5481,7 @@ bool spu_thread::reservation_check(u32 addr, u32 hash, atomic_t<u64, 64>* range_
|
|||
|
||||
usz spu_thread::register_cache_line_waiter(u32 addr)
|
||||
{
|
||||
const u64 value = u64{compute_rdata_hash32(rdata)} << 32 | raddr;
|
||||
const u64 value = u64{compute_rdata_hash32(rdata)} << 32 | addr;
|
||||
|
||||
for (usz i = 0; i < std::size(g_spu_waiters_by_value); i++)
|
||||
{
|
||||
|
|
|
@ -883,7 +883,7 @@ void PadHandlerBase::get_orientation(const pad_ensemble& binding) const
|
|||
return;
|
||||
}
|
||||
|
||||
if (!pad->move_data.orientation_enabled || pad->get_orientation_reset_button_active(pad->m_player_id))
|
||||
if (!pad->move_data.orientation_enabled || pad->get_orientation_reset_button_active())
|
||||
{
|
||||
// This can be called extensively in quick succession, so let's just reset the pointer instead of creating a new object.
|
||||
device->ahrs.reset();
|
||||
|
|
|
@ -253,7 +253,7 @@ bool Pad::get_analog_limiter_button_active(bool is_toggle_mode, u32 player_id)
|
|||
return analog_limiter_button.m_pressed;
|
||||
}
|
||||
|
||||
bool Pad::get_orientation_reset_button_active(u32 player_id)
|
||||
bool Pad::get_orientation_reset_button_active()
|
||||
{
|
||||
if (m_orientation_reset_button_index < 0)
|
||||
{
|
||||
|
|
|
@ -518,7 +518,7 @@ struct Pad
|
|||
bool get_analog_limiter_button_active(bool is_toggle_mode, u32 player_id);
|
||||
|
||||
s32 m_orientation_reset_button_index{-1}; // Special button index. -1 if not set.
|
||||
bool get_orientation_reset_button_active(u32 player_id);
|
||||
bool get_orientation_reset_button_active();
|
||||
|
||||
// Cable State: 0 - 1 plugged in ?
|
||||
u8 m_cable_state{0};
|
||||
|
|
|
@ -679,12 +679,12 @@ void ps_move_handler::get_extended_info(const pad_ensemble& binding)
|
|||
|
||||
if (dev->model == ps_move_model::ZCM1)
|
||||
{
|
||||
accel_x -= zero_shift;
|
||||
accel_y -= zero_shift;
|
||||
accel_z -= zero_shift;
|
||||
gyro_x -= zero_shift;
|
||||
gyro_y -= zero_shift;
|
||||
gyro_z -= zero_shift;
|
||||
accel_x -= static_cast<f32>(zero_shift);
|
||||
accel_y -= static_cast<f32>(zero_shift);
|
||||
accel_z -= static_cast<f32>(zero_shift);
|
||||
gyro_x -= static_cast<f32>(zero_shift);
|
||||
gyro_y -= static_cast<f32>(zero_shift);
|
||||
gyro_z -= static_cast<f32>(zero_shift);
|
||||
}
|
||||
|
||||
if (!device->config || !device->config->orientation_enabled)
|
||||
|
|
Loading…
Add table
Reference in a new issue