Patch update - V9.2.1
This commit is contained in:
parent
606aaa76e9
commit
f2a8bb6b5b
10
.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml
generated
10
.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml
generated
@ -6,11 +6,11 @@
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="e81d6e08-efc7-40a0-909d-ec4943d948e9" name="Changes" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/enginecustom/imgui.ini" beforeDir="false" afterPath="$PROJECT_DIR$/enginecustom/imgui.ini" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/enginecustom/src/inc/system/object.h" beforeDir="false" afterPath="$PROJECT_DIR$/enginecustom/src/inc/system/object.h" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/enginecustom/src/src/system/applicationclass.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/enginecustom/src/src/system/applicationclass.cpp" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/enginecustom/src/inc/system/inputclass.h" beforeDir="false" afterPath="$PROJECT_DIR$/enginecustom/src/inc/system/inputclass.h" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/enginecustom/src/inc/system/systemclass.h" beforeDir="false" afterPath="$PROJECT_DIR$/enginecustom/src/inc/system/systemclass.h" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/enginecustom/src/src/system/Systemclass.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/enginecustom/src/src/system/Systemclass.cpp" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/enginecustom/src/src/system/imguiManager.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/enginecustom/src/src/system/imguiManager.cpp" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/enginecustom/src/src/system/object.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/enginecustom/src/src/system/object.cpp" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/enginecustom/src/src/system/inputclass.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/enginecustom/src/src/system/inputclass.cpp" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@ -156,7 +156,7 @@
|
||||
<workItem from="1742314944369" duration="79000" />
|
||||
<workItem from="1742318452773" duration="2258000" />
|
||||
<workItem from="1742331065936" duration="3030000" />
|
||||
<workItem from="1742371397157" duration="8862000" />
|
||||
<workItem from="1742371397157" duration="13355000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="Minor update - viewport window tweak">
|
||||
<option name="closed" value="true" />
|
||||
|
@ -50,6 +50,8 @@ public:
|
||||
bool IsSPressed() const;
|
||||
bool IsQPressed() const;
|
||||
bool IsEPressed()const;
|
||||
bool IsTildePressed() const;
|
||||
bool IsTildeReleased() const;
|
||||
|
||||
bool IsKeyDown(unsigned int) const;
|
||||
|
||||
@ -69,6 +71,7 @@ private:
|
||||
DIMOUSESTATE m_mouseState;
|
||||
|
||||
int m_screenWidth, m_screenHeight, m_mouseX, m_mouseY;
|
||||
bool m_previousTildeState;
|
||||
|
||||
};
|
||||
|
||||
|
@ -52,6 +52,7 @@ private:
|
||||
int m_initialWindowHeight;
|
||||
bool m_isDirect3DInitialized;
|
||||
bool m_isResizing = false;
|
||||
bool m_IsDebugKeyPressed = false;
|
||||
|
||||
std::mutex renderMutex;
|
||||
};
|
||||
|
@ -268,6 +268,19 @@ bool SystemClass::Frame()
|
||||
return false;
|
||||
}
|
||||
|
||||
if(m_Input->IsTildePressed() && !m_IsDebugKeyPressed)
|
||||
{
|
||||
//log the key press
|
||||
m_IsDebugKeyPressed = true;
|
||||
DEBUG_MODE = !DEBUG_MODE;
|
||||
}
|
||||
else if (!m_Input->IsTildeReleased())
|
||||
{
|
||||
// Log the key release state
|
||||
m_IsDebugKeyPressed = false;
|
||||
}
|
||||
|
||||
|
||||
if (DEBUG_MODE)
|
||||
{
|
||||
// Render ImGui
|
||||
|
@ -110,8 +110,6 @@ void imguiManager::SetupDockspace(ApplicationClass* app) {
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
|
||||
|
||||
ImGui::EndMenuBar();
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ InputClass::InputClass()
|
||||
m_directInput = 0;
|
||||
m_keyboard = 0;
|
||||
m_mouse = 0;
|
||||
m_previousTildeState = false;
|
||||
}
|
||||
|
||||
|
||||
@ -384,6 +385,17 @@ bool InputClass::IsEPressed() const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool InputClass::IsTildePressed() const
|
||||
{
|
||||
return (m_keyboardState[DIK_GRAVE] & 0x80) && !m_previousTildeState;
|
||||
}
|
||||
|
||||
// Ajoutez la méthode IsTildeReleased pour vérifier si la touche est actuellement relâchée et était enfoncée lors de la dernière vérification
|
||||
bool InputClass::IsTildeReleased() const
|
||||
{
|
||||
return !(m_keyboardState[DIK_GRAVE] & 0x80) && m_previousTildeState;
|
||||
}
|
||||
|
||||
void InputClass::GetMouseLocation(int& mouseX, int& mouseY) const
|
||||
{
|
||||
mouseX = m_mouseX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user