mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 06:29:05 +01:00
linux (compat): Add linux to most Win64 guards
This commit is contained in:
1 parent
8cf5675892
commit
9626065598
180 files changed
+941
-935
No files matched your search
@@ -19,7 +19,7 @@ UIScene_SignEntryMenu::UIScene_SignEntryMenu(int iPad, void *_initData, UILayer
|
||||
m_bConfirmed = false;
|
||||
m_bIgnoreInput = false;
|
||||
m_iSignCursorFrame = 0;
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
m_iActiveDirectEditLine = -1;
|
||||
m_bNeedsInitialEdit = true;
|
||||
m_bSkipTickNav = false;
|
||||
@@ -84,7 +84,7 @@ void UIScene_SignEntryMenu::tick()
|
||||
{
|
||||
UIScene::tick();
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
// On first tick, auto-start editing line 1 if KBM is active (Java-style flow)
|
||||
if (m_bNeedsInitialEdit)
|
||||
{
|
||||
@@ -134,7 +134,7 @@ void UIScene_SignEntryMenu::tick()
|
||||
m_iSignCursorFrame++;
|
||||
if (m_iSignCursorFrame / 6 % 2 == 0)
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
if (m_iActiveDirectEditLine >= 0)
|
||||
m_sign->SetSelectedLine(m_iActiveDirectEditLine);
|
||||
else
|
||||
@@ -165,7 +165,7 @@ void UIScene_SignEntryMenu::tick()
|
||||
for(int i=0;i<4;i++)
|
||||
{
|
||||
wstring temp=m_textInputLines[i].getLabel();
|
||||
m_sign->SetMessage(i,temp);
|
||||
m_sign->SetMessage(i,temp);
|
||||
}
|
||||
|
||||
m_sign->setChanged();
|
||||
@@ -187,7 +187,7 @@ void UIScene_SignEntryMenu::tick()
|
||||
void UIScene_SignEntryMenu::handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled)
|
||||
{
|
||||
if(m_bConfirmed || m_bIgnoreInput) return;
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
if (isDirectEditBlocking()) { handled = true; return; }
|
||||
#endif
|
||||
|
||||
@@ -221,7 +221,7 @@ void UIScene_SignEntryMenu::handleInput(int iPad, int key, bool repeat, bool pre
|
||||
case ACTION_MENU_UP:
|
||||
case ACTION_MENU_DOWN:
|
||||
sendInputToMovie(key, repeat, pressed, released);
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
// Auto-start editing if focus moved to a line (e.g. UP from Confirm)
|
||||
if (g_KBMInput.IsKBMActive())
|
||||
{
|
||||
@@ -242,7 +242,7 @@ void UIScene_SignEntryMenu::handleInput(int iPad, int key, bool repeat, bool pre
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
void UIScene_SignEntryMenu::getDirectEditInputs(vector<UIControl_TextInput*> &inputs)
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
@@ -313,7 +313,7 @@ int UIScene_SignEntryMenu::KeyboardCompleteCallback(LPVOID lpParam,bool bRes)
|
||||
pClass->m_bIgnoreInput = false;
|
||||
if (bRes)
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
uint16_t pchText[128];
|
||||
ZeroMemory(pchText, 128 * sizeof(uint16_t));
|
||||
Win64_GetKeyboardText(pchText, 128);
|
||||
@@ -330,7 +330,7 @@ int UIScene_SignEntryMenu::KeyboardCompleteCallback(LPVOID lpParam,bool bRes)
|
||||
|
||||
void UIScene_SignEntryMenu::handlePress(F64 controlId, F64 childId)
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
if (isDirectEditBlocking()) return;
|
||||
#endif
|
||||
switch(static_cast<int>(controlId))
|
||||
@@ -346,7 +346,7 @@ void UIScene_SignEntryMenu::handlePress(F64 controlId, F64 childId)
|
||||
case eControl_Line4:
|
||||
{
|
||||
m_iEditingLine = static_cast<int>(controlId);
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
if (g_KBMInput.IsKBMActive())
|
||||
{
|
||||
// Only start editing from keyboard (Enter on focused line), not mouse clicks
|
||||
@@ -402,4 +402,4 @@ void UIScene_SignEntryMenu::handleDestroy()
|
||||
#if ( defined __PS3__ || defined __ORBIS__ || defined _DURANGO)
|
||||
InputManager.DestroyKeyboard();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user