chore: cleanup

This commit is contained in:
str1k3r committed 2026-10-25 17:00:03 -04:00
1 parent f7f0619c39
commit bfa635f781
11 files changed
+221 -180

No files matched your search

+14 -22
View File
@@ -1,12 +1,5 @@
#include "INP_Main.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/sys_time.h> // sys_time_get_current_time
#include <sysutil/sysutil_common.h> // cellSysutilGetSystemParamInt
#include <sysutil/sysutil_sysparam.h> // cellSysutilGetSystemParamInt
CInput InternalInputManager;
CInput::CInput()
@@ -47,20 +40,21 @@ void CInput::DebugPrintf(const char *szFormat, ...)
printf(buf);
}
bool CInput::QueryPerformanceFrequency(_LARGE_INTEGER *)
//str1k3r - Taken from Ps3Stubs.cpp
bool CInput::QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency)
{
#if TO_BE_IMPLEMENTED
*(_QWORD *)a2 = 1000000;
#endif
// microseconds
lpFrequency->QuadPart = (1000 * 1000);
return false;
}
bool CInput::QueryPerformanceCounter(_LARGE_INTEGER *)
bool CInput::QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount)
{
#if TO_BE_IMPLEMENTED
sys_time_get_current_time(&v3, &v4);
*(_QWORD *)a2 = 1000000 * v3 + v4 / 1000;
#endif
sys_time_sec_t sec;
sys_time_nsec_t nsec;
sys_time_get_current_time(&sec, &nsec);
// microseconds
lpPerformanceCount->QuadPart = (sec * (1000 * 1000)) + (nsec / 1000);
return true;
}
@@ -704,12 +698,10 @@ FLOAT CInput::GetIdleSeconds(int iPad)
{
LARGE_INTEGER qwDeltaTime;
QueryPerformanceCounter(&qwDeltaTime);
#if TO_BE_IMPLEMENTED
uint64_t v4 = qwDeltaTime.QuadPart - *(_QWORD *)(v5 + 4696 + 8 * a2);
return (float)(*(float *)((char *)&loc_644 + v5) * (float)v4)
#else
return 0.0f;
#endif
LARGE_INTEGER fElapsedTime = this->m_LastActivityTime[iPad];
return this->m_fTickToSeconds * (qwDeltaTime.LowPart - fElapsedTime.LowPart);
}
void CInput::SetLostInputControlCallback(void( *Func)(LPVOID, bool),LPVOID lpParam)