SpiecsEngine
 
Loading...
Searching...
No Matches

◆ IsMouseButtonPressedImpl()

bool Spices::WindowsInput::IsMouseButtonPressedImpl ( const int & button)
overrideprotectedvirtual

Query If given Mouse Button is Pressed.

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

Get GLFW Window Pointer.

Query GLFW Window Mouse State.

Get GLFW Window Pointer.

Query GLFW Window Mouse State.

Implements Spices::Input.

Definition at line 37 of file WindowsInput.cpp.

38 {
40
44 const auto window = VulkanRenderBackend::GetState().m_Windows;
45
49 const auto state = glfwGetMouseButton(window, button);
50
51 return state == GLFW_PRESS;
52 }
#define SPICES_PROFILE_ZONE
static VulkanState & GetState()
Get VulkanState in use.
GLFWwindow * m_Windows
Definition VulkanUtils.h:92

References Spices::VulkanRenderBackend::GetState().