Skip to content

Commit 432297f

Browse files
author
Daniel K. O. (dkosmari)
committed
Renamed parameters for VPADWriteTPCalibrationValueToEEPROM.
1 parent 3791b01 commit 432297f

1 file changed

Lines changed: 23 additions & 8 deletions

File tree

include/vpad/input.h

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,16 +1050,31 @@ void
10501050
VPADStartAccCalibration(VPADChan chan,
10511051
uint32_t unknown);
10521052

1053+
/**
1054+
* Writes touchpad calibration data to EEPROM.
1055+
*
1056+
* \param chan The target Gamepad.
1057+
* \param oldMinX Written directly.
1058+
* \param oldMinY Written directly.
1059+
* \param newMinX Scaled by `0.6672004f` (approx. `854.0f / 1280.0f`)
1060+
* \param newMinY Scaled by `0.6666667f` (`480.0f / 720.0f`)
1061+
* \param oldMaxX Written directly.
1062+
* \param oldMaxY Written directly.
1063+
* \param newMaxX Scaled by `0.6672004f` (approx. `854.0f / 1280.0f`)
1064+
* \param newMaxY Scaled by `0.6666667f` (`480.0f / 720.0f`)
1065+
*
1066+
* \return `0` on success.
1067+
*/
10531068
int32_t
10541069
VPADWriteTPCalibrationValueToEEPROM(VPADChan chan,
1055-
uint16_t unknown1,
1056-
uint16_t unknown2,
1057-
uint16_t unknown3,
1058-
uint16_t unknown4,
1059-
uint16_t unknown5,
1060-
uint16_t unknown6,
1061-
uint16_t unknown7,
1062-
uint16_t unknown8);
1070+
uint16_t oldMinX,
1071+
uint16_t oldMinY,
1072+
uint16_t newMinX,
1073+
uint16_t newMinY,
1074+
uint16_t oldMaxX,
1075+
uint16_t oldMaxY,
1076+
uint16_t newMaxX,
1077+
uint16_t newMaxY);
10631078

10641079
#ifdef __cplusplus
10651080
}

0 commit comments

Comments
 (0)