mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-03-29 06:59:43 -06:00
clang, formatter of night
This commit is contained in:
parent
e1ad33155d
commit
aee58a7b5c
@ -84,8 +84,8 @@ void State::UpdateAxisSmoothing() {
|
||||
continue;
|
||||
}
|
||||
auto now = Libraries::Kernel::sceKernelGetProcessTime();
|
||||
f32 t = std::clamp((now - axis_smoothing_start_times[i]) / f32{axis_smoothing_time},
|
||||
0.f, 1.f);
|
||||
f32 t =
|
||||
std::clamp((now - axis_smoothing_start_times[i]) / f32{axis_smoothing_time}, 0.f, 1.f);
|
||||
axes[i] = s32(axis_smoothing_start_values[i] * (1 - t) + axis_smoothing_end_values[i] * t);
|
||||
}
|
||||
}
|
||||
|
||||
@ -46,8 +46,8 @@ private:
|
||||
AxisArray<u64> axis_smoothing_start_times{0};
|
||||
AxisArray<int> axis_smoothing_start_values{axis_defaults};
|
||||
AxisArray<int> axis_smoothing_end_values{axis_defaults};
|
||||
|
||||
public:
|
||||
|
||||
public:
|
||||
void OnButton(Libraries::Pad::OrbisPadButtonDataOffset, bool);
|
||||
void OnAxis(Axis, int, bool smooth = true);
|
||||
void OnTouchpad(int touchIndex, bool isDown, float x, float y);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user