mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-14 11:08:08 +00:00
Replace remaining WinAPI types with standard C++ equivalents
DWORD→uint32_t, BYTE→uint8_t, HRESULT→int32_t, HANDLE→void*, UINT→uint32_t, INT→int32_t, WORD→uint16_t, LONG→int32_t, SHORT→int16_t, LONGLONG→int64_t, ULONG_PTR→uintptr_t, PBYTE→uint8_t*, LPWSTR/PWSTR→wchar_t*, FLOAT→float, CHAR→char, boolean→bool, CONST→const, TRUE→true, FALSE→false across 176 files (excluding vendor libs and Linux stubs).
This commit is contained in:
@@ -1095,9 +1095,9 @@ bool IUIScene_AbstractContainerMenu::handleKeyDown(int iPad, int iAction,
|
||||
ui.AnimateKeyPress(iPad, iAction, bRepeat, true, false);
|
||||
|
||||
int buttonNum = 0; // 0 = LeftMouse, 1 = RightMouse
|
||||
bool quickKeyHeld = FALSE; // Represents shift key on PC
|
||||
bool quickKeyHeld = false; // Represents shift key on PC
|
||||
|
||||
bool validKeyPress = FALSE;
|
||||
bool validKeyPress = false;
|
||||
bool itemEditorKeyPress = false;
|
||||
|
||||
// Ignore input from other players
|
||||
@@ -1106,7 +1106,7 @@ bool IUIScene_AbstractContainerMenu::handleKeyDown(int iPad, int iAction,
|
||||
switch (iAction) {
|
||||
#if defined(_DEBUG_MENUS_ENABLED)
|
||||
case ACTION_MENU_OTHER_STICK_PRESS:
|
||||
itemEditorKeyPress = TRUE;
|
||||
itemEditorKeyPress = true;
|
||||
break;
|
||||
#endif
|
||||
case ACTION_MENU_A:
|
||||
@@ -1256,14 +1256,14 @@ bool IUIScene_AbstractContainerMenu::handleKeyDown(int iPad, int iAction,
|
||||
// over empty space or something else???
|
||||
handleOtherClicked(iPad, m_eCurrSection, buttonNum,
|
||||
quickKeyHeld ? true : false);
|
||||
// assert( FALSE );
|
||||
// assert( false );
|
||||
}
|
||||
}
|
||||
}
|
||||
bHandled = true;
|
||||
}
|
||||
#if defined(_DEBUG_MENUS_ENABLED)
|
||||
else if (itemEditorKeyPress == TRUE) {
|
||||
else if (itemEditorKeyPress == true) {
|
||||
if (IsSectionSlotList(m_eCurrSection)) {
|
||||
ItemEditorInput* initData = new ItemEditorInput();
|
||||
initData->iPad = getPad();
|
||||
|
||||
Reference in New Issue
Block a user