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
9 // Mouse
11 
12 #include <vector>
13 
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 
40 
41 
42 #endif // !ENIGMA_INPUT_H
KeyCode
Definition: KeyCodes.hpp:11
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition: Macros.hpp:13
#define NS_ENIGMA_END
Definition: Macros.hpp:14
MouseCode
Definition: MouseCodes.hpp:11
Definition: Input.hpp:17
static bool IsKeyPressed(const KeyCode keycode) noexcept
static bool IsMouseButtonPressed(const MouseCode button) noexcept
static float GetMouseY() noexcept
static bool AreKeysPressed(const std::initializer_list< KeyCode > &keycodes) noexcept
static float GetMouseX() noexcept
static std::pair< float, float > GetMousePosition() noexcept