2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 13:26:09 +00:00

Minor input fixes, restore controller name in input viewer

This commit is contained in:
2022-03-22 12:44:35 -07:00
parent 42dde9187b
commit 7cf863983a
7 changed files with 17 additions and 11 deletions

View File

@@ -132,7 +132,7 @@ void CDolphinController::ProcessDigitalButton(u32 controller, CControllerButton&
}
void CDolphinController::ProcessAnalogButton(float value, CControllerAxis& axis) {
float absolute = value * (1 / 150.f);
if (value * (1 / 150.f) > 1.f) {
if (value * (1 / 150.f) > kAbsoluteMaximum) {
absolute = kAbsoluteMaximum;
}