Minor Update - Logger Tweak
This commit is contained in:
@@ -112,7 +112,7 @@ bool InputClass::Initialize(HINSTANCE hinstance, HWND hwnd, int screenWidth, int
|
||||
return false;
|
||||
}
|
||||
|
||||
Logger::Get().Log("Input class initialized", __FILE__, __LINE__);
|
||||
Logger::Get().Log("Input class initialized", __FILE__, __LINE__, Logger::LogLevel::Initialize);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -171,7 +171,7 @@ void InputClass::Shutdown()
|
||||
m_directInput = 0;
|
||||
}
|
||||
|
||||
Logger::Get().Log("Input class shut down", __FILE__, __LINE__);
|
||||
Logger::Get().Log("Input class shut down", __FILE__, __LINE__, Logger::LogLevel::Shutdown);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -282,6 +282,7 @@ bool InputClass::IsLeftArrowPressed()
|
||||
{
|
||||
if (m_keyboardState[DIK_LEFT] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("Left arrow pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -293,6 +294,7 @@ bool InputClass::IsRightArrowPressed()
|
||||
{
|
||||
if (m_keyboardState[DIK_RIGHT] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("Right arrow pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -308,6 +310,7 @@ bool InputClass::IsAPressed()
|
||||
// Touche A sur QWERTY, Q sur AZERTY
|
||||
if (m_keyboardState[DIK_A] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("A pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -318,6 +321,7 @@ bool InputClass::IsDPressed()
|
||||
{
|
||||
if (m_keyboardState[DIK_D] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("D pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -329,6 +333,7 @@ bool InputClass::IsWPressed()
|
||||
// Touche W sur QWERTY, Z sur AZERTY
|
||||
if (m_keyboardState[DIK_W] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("W pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -339,6 +344,7 @@ bool InputClass::IsSPressed()
|
||||
{
|
||||
if (m_keyboardState[DIK_S] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("S pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -350,6 +356,7 @@ bool InputClass::IsQPressed()
|
||||
// Touche Q sur QWERTY, A sur AZERTY
|
||||
if (m_keyboardState[DIK_Q] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("Q pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -360,6 +367,7 @@ bool InputClass::IsEPressed()
|
||||
{
|
||||
if (m_keyboardState[DIK_E] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("E pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -378,6 +386,7 @@ bool InputClass::IsLeftMousePressed()
|
||||
// Check the left mouse button state.
|
||||
if (m_mouseState.rgbButtons[0] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("Left mouse button pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -389,6 +398,7 @@ bool InputClass::IsRightMousePressed()
|
||||
// Check the left mouse button state.
|
||||
if (m_mouseState.rgbButtons[1] & 0x80)
|
||||
{
|
||||
Logger::Get().Log("Right mouse button pressed", __FILE__, __LINE__, Logger::LogLevel::Input);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user