Commit 258db839 authored by Alexander Maximilian Nilles's avatar Alexander Maximilian Nilles
Browse files

Reintroduce F5 to reload shaders

parent 9b6ae7e7
......@@ -1152,6 +1152,10 @@ void Editor::processInputsEditor()
void Editor::processInputsMain()
{
if(m_f5.pressed(*m_window))
{
dino::Program::reloadAll();
}
if(m_ctrlO.pressed(*m_window))
{
if(glfwGetKey(*m_window, GLFW_KEY_LEFT_SHIFT) == GLFW_PRESS)
......
......@@ -133,6 +133,7 @@ private:
KeyboardButton m_ctrlN = KeyboardButton(GLFW_KEY_N, GLFW_KEY_LEFT_CONTROL);
KeyboardButton m_shiftTabEditor = KeyboardButton(GLFW_KEY_LEFT_SHIFT, GLFW_KEY_TAB);
KeyboardButton m_shiftTabMain = KeyboardButton(GLFW_KEY_LEFT_SHIFT, GLFW_KEY_TAB);
KeyboardButton m_f5 = KeyboardButton(GLFW_KEY_F5, GLFW_KEY_F5);
bool m_mouseBtnDown[2] = {false, false};
};
} // namespace dino
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment