SpiecsEngine
 
Loading...
Searching...
No Matches

◆ IsKeyPressedImpl()

bool Spices::WindowsInput::IsKeyPressedImpl ( const int & keycode)
overrideprotectedvirtual

Query If given Key is Pressed.

Parameters
[in]keycodeIn Mouse Button.
Returns
Returns true if given Key is Pressed.

Get GLFW Window Pointer.

Query GLFW Window Key State.

Get GLFW Window Pointer.

Query GLFW Window Key State.

Implements Spices::Input.

Definition at line 20 of file WindowsInput.cpp.

21 {
23
27 const auto window = VulkanRenderBackend::GetState().m_Windows;
28
32 const auto state = glfwGetKey(window, keycode);
33
34 return state == GLFW_PRESS || state == GLFW_REPEAT;
35 }
#define SPICES_PROFILE_ZONE
static VulkanState & GetState()
Get VulkanState in use.
GLFWwindow * m_Windows
Definition VulkanUtils.h:92

References Spices::VulkanRenderBackend::GetState().