chore: cleanup
This commit is contained in:
1 parent
f7f0619c39
commit
bfa635f781
11 files changed
+221
-180
No files matched your search
+14
-22
@@ -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)
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#include "INP_OnScreenKeyboard.h"
|
||||
#include "INP_MsgBox.h"
|
||||
|
||||
#include <cell/pad.h>
|
||||
|
||||
#define MAX_JOYPADS 4
|
||||
|
||||
class CInput
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "4J_Input.h"
|
||||
#include <sysutil/sysutil_msgdialog.h> // cellMsgDialogOpen2
|
||||
|
||||
class CMsgBox
|
||||
{
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "4J_Input.h"
|
||||
#include <sysutil/sysutil_common.h> // cellSysutilRegisterCallback
|
||||
#include <sysutil/sysutil_oskdialog.h > // cellOskDialogUnloadAsync
|
||||
#include <sysutil/sysutil_oskdialog_ext.h> // cellOskDialogExtRegisterKeyboardEventHookCallback
|
||||
#include <sysutil/sysutil_sysparam.h> // cellSysutilGetSystemParamInt
|
||||
#include <cell/sysmodule.h> // SYS_MEMORY_CONTAINER_ID_INVALID
|
||||
|
||||
class CKeyboard
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user