Enigma
3.2.0
A Simple, Reliable and Efficient Encryption Tool
Input.hpp
Go to the documentation of this file.
1
#pragma once
2
#ifndef ENIGMA_INPUT_H
3
#define ENIGMA_INPUT_H
4
5
#include <
Core/Core.hpp
>
6
7
// Keyboard
8
#include <
Input/Keyboard/KeyCodes.hpp
>
9
// Mouse
10
#include <
Input/Mouse/MouseCodes.hpp
>
11
12
#include <vector>
13
14
NS_ENIGMA_BEGIN
15
17
class
Input
{
18
public
:
/* Keyboard */
20
static
bool
IsKeyPressed
(
const
KeyCode
keycode) noexcept;
21
23
static
bool
AreKeysPressed
(
const
std::initializer_list<KeyCode>& keycodes) noexcept;
24
25
public
:
/* Mouse */
27
static
bool
IsMouseButtonPressed
(
const
MouseCode
button) noexcept;
28
30
static
std::pair<float, float>
GetMousePosition
() noexcept;
31
33
static
float
GetMouseX
() noexcept;
34
36
static
float
GetMouseY
() noexcept;
37
};
38
39
NS_ENIGMA_END
40
41
42
#endif
// !ENIGMA_INPUT_H
Core.hpp
KeyCodes.hpp
KeyCode
KeyCode
Definition:
KeyCodes.hpp:11
NS_ENIGMA_BEGIN
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition:
Macros.hpp:13
NS_ENIGMA_END
#define NS_ENIGMA_END
Definition:
Macros.hpp:14
MouseCodes.hpp
MouseCode
MouseCode
Definition:
MouseCodes.hpp:11
Input
Definition:
Input.hpp:17
Input::IsKeyPressed
static bool IsKeyPressed(const KeyCode keycode) noexcept
Input::IsMouseButtonPressed
static bool IsMouseButtonPressed(const MouseCode button) noexcept
Input::GetMouseY
static float GetMouseY() noexcept
Input::AreKeysPressed
static bool AreKeysPressed(const std::initializer_list< KeyCode > &keycodes) noexcept
Input::GetMouseX
static float GetMouseX() noexcept
Input::GetMousePosition
static std::pair< float, float > GetMousePosition() noexcept
src
Input
Input.hpp
Generated on Sat Oct 19 2024 20:10:46 for Enigma by
1.9.1