windowing inputs
parent
0e8c7bed68
commit
ea5b3d8b79
|
@ -80,6 +80,10 @@ namespace blt::gfx
|
|||
|
||||
std::string getClipboard();
|
||||
|
||||
bool isMousePressed(int button);
|
||||
|
||||
bool isKeyPressed(int key);
|
||||
|
||||
void cleanup();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue