windowing inputs

main
Brett 2023-12-15 17:43:00 -05:00
parent 0e8c7bed68
commit ea5b3d8b79
2 changed files with 14 additions and 0 deletions

View File

@ -80,6 +80,10 @@ namespace blt::gfx
std::string getClipboard();
bool isMousePressed(int button);
bool isKeyPressed(int key);
void cleanup();
}

View File

@ -194,4 +194,14 @@ namespace blt::gfx
{
return glfwGetClipboardString(window_state.window);
}
bool isMousePressed(int button)
{
return window_state.inputManager.isMousePressed(button);
}
bool isKeyPressed(int key)
{
return window_state.inputManager.isKeyPressed(key);
}
}