chore: cleanup
This commit is contained in:
1 parent
f83c0298ef
commit
69d6a51ad5
10 files changed
+24
-28
No files matched your search
@@ -4,11 +4,12 @@
|
||||
CKeyboard::CKeyboard()
|
||||
{
|
||||
bActive = false;
|
||||
pwchResult = L"";
|
||||
}
|
||||
|
||||
void CKeyboard::Tick(void)
|
||||
{
|
||||
if (bActive == true && KeyboardOverlap.InternalLow != ERROR_IO_PENDING)
|
||||
if (bActive && KeyboardOverlap.InternalLow != ERROR_IO_PENDING)
|
||||
{
|
||||
if(Func != NULL) Func(lpParam, KeyboardOverlap.dwExtendedError == 0);
|
||||
bActive = false;
|
||||
@@ -17,7 +18,7 @@ void CKeyboard::Tick(void)
|
||||
|
||||
C_4JInput::EKeyboardResult CKeyboard::RequestKeyboard(LPCWSTR uiTitle, LPCWSTR uiText, LPCWSTR uiDesc, DWORD dwPad, WCHAR *pwchResult, UINT uiMaxChars, int (*Func)(LPVOID, const bool), LPVOID lpParam, C_4JInput::EKeyboardMode eMode)
|
||||
{
|
||||
if (bActive == true)
|
||||
if (bActive)
|
||||
return C_4JInput::EKeyboard_Cancelled;
|
||||
|
||||
this->iPad = (int)dwPad;
|
||||
@@ -57,7 +58,7 @@ C_4JInput::EKeyboardResult CKeyboard::RequestKeyboard(LPCWSTR uiTitle, LPCWSTR u
|
||||
//str1k3r - These 2 only exist cause of iggy
|
||||
C_4JInput::EKeyboardResult CKeyboard::RequestKeyboard(LPCWSTR uiTitle, LPCWSTR uiText, LPCWSTR uiDesc, DWORD dwPad, UINT uiMaxChars, int(*Func)(LPVOID, const bool), LPVOID lpParam, C_4JInput::EKeyboardMode eMode)
|
||||
{
|
||||
;
|
||||
return RequestKeyboard(uiTitle, uiText, uiDesc, dwPad, pwchResult, uiMaxChars, Func, lpParam, eMode);
|
||||
}
|
||||
|
||||
void CKeyboard::GetText(uint16_t *UTF16String)
|
||||
|
||||
Reference in new issue
Block a user