SpiecsEngine
Loading...
Searching...
No Matches
WindowsInput.h
Go to the documentation of this file.
1
/**
2
* @file Input.h.
3
* @brief The WindowsInput Class Definitions.
4
* @author The Cherno.
5
*/
6
7
#
pragma
once
8
#
include
"Core/Core.h"
9
#
include
"Input.h"
10
11
namespace
Spices
{
12
13
/**
14
* @brief This Class Is Windows Platform Specific Input Class.
15
*/
16
class
WindowsInput
:
public
Input
17
{
18
protected
:
19
20
/**
21
* @brief Query If given Key is Pressed.
22
* @param[in] keycode In Mouse Button.
23
* @return Returns true if given Key is Pressed.
24
*/
25
virtual
bool
IsKeyPressedImpl
(
const
int
& keycode)
override
;
26
27
/**
28
* @brief Query If given Mouse Button is Pressed.
29
* @param[in] button In Mouse Button.
30
* @return Returns true if given Key is Pressed.
31
*/
32
virtual
bool
IsMouseButtonPressedImpl
(
const
int
& button)
override
;
33
34
/**
35
* @brief Query Mouse Position in Windows.
36
* @return Returns the pair of Mouse Position in Windows.
37
*/
38
virtual
std::pair<
float
,
float
>
GetMousePositionImpl
()
override
;
39
40
/**
41
* @brief Query Mouse X Position in Windows.
42
* @return Returns the Mouse X Position in Windows.
43
*/
44
virtual
float
GetMouseXImpl
()
override
;
45
46
/**
47
* @brief Query Mouse Y Position in Windows.
48
* @return Returns the Mouse Y Position in Windows.
49
*/
50
virtual
float
GetMouseYImpl
()
override
;
51
};
52
}
SPICES_PROFILE_ZONE
#define SPICES_PROFILE_ZONE
Definition
TracyProfilerWrapper.h:100
Spices::Input::s_Instance
static std::unique_ptr< Input > s_Instance
Platform Specific Input Class.
Definition
Input.h:105
Spices::Input
This Class Is a wrapper of Platform Specific Input Query.
Definition
Input.h:16
Spices::VulkanRenderBackend::GetState
static VulkanState & GetState()
Get VulkanState in use.
Definition
VulkanRenderBackend.h:97
Spices::VulkanRenderBackend
This class defines the render backend behaves of Vulkan.
Definition
VulkanRenderBackend.h:37
Spices::WindowsInput::GetMousePositionImpl
virtual std::pair< float, float > GetMousePositionImpl() override
Query Mouse Position in Windows.
Definition
WindowsInput.cpp:54
Spices::WindowsInput::IsMouseButtonPressedImpl
virtual bool IsMouseButtonPressedImpl(const int &button) override
Query If given Mouse Button is Pressed.
Definition
WindowsInput.cpp:37
Spices::WindowsInput::GetMouseXImpl
virtual float GetMouseXImpl() override
Query Mouse X Position in Windows.
Definition
WindowsInput.cpp:72
Spices::WindowsInput::GetMouseYImpl
virtual float GetMouseYImpl() override
Query Mouse Y Position in Windows.
Definition
WindowsInput.cpp:80
Spices::WindowsInput::IsKeyPressedImpl
virtual bool IsKeyPressedImpl(const int &keycode) override
Query If given Key is Pressed.
Definition
WindowsInput.cpp:20
Spices::WindowsInput
This Class Is Windows Platform Specific Input Class.
Definition
WindowsInput.h:17
Spices
Definition
EntryPoint.cpp:4
SpicesEngine
src
Core
Input
WindowsInput.h
Generated on Sun Mar 8 2026 10:23:13 for SpiecsEngine by
1.10.0