Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
Input Class Reference

#include <Input.hpp>

Static Public Member Functions

static bool IsKeyPressed (const KeyCode keycode) noexcept
 
static bool AreKeysPressed (const std::initializer_list< KeyCode > &keycodes) noexcept
 
static bool IsMouseButtonPressed (const MouseCode button) noexcept
 
static std::pair< float, float > GetMousePosition () noexcept
 
static float GetMouseX () noexcept
 
static float GetMouseY () noexcept
 

Detailed Description

Input static class to gather input information at runtime like Mouse position, Is a keyboard button pressed..

Definition at line 17 of file Input.hpp.

Member Function Documentation

◆ AreKeysPressed()

static bool Input::AreKeysPressed ( const std::initializer_list< KeyCode > &  keycodes)
staticnoexcept

Returns true if the keyboard buttons are pressed

◆ GetMousePosition()

static std::pair<float, float> Input::GetMousePosition ( )
staticnoexcept

Returns x,y coords of the mouse positon relative to application's window

◆ GetMouseX()

static float Input::GetMouseX ( )
staticnoexcept

Returns x coord of the mouse positon relative to application's window

◆ GetMouseY()

static float Input::GetMouseY ( )
staticnoexcept

Returns y coord of the mouse positon relative to application's window

◆ IsKeyPressed()

static bool Input::IsKeyPressed ( const KeyCode  keycode)
staticnoexcept

Returns true if the keyboard button is pressed

◆ IsMouseButtonPressed()

static bool Input::IsMouseButtonPressed ( const MouseCode  button)
staticnoexcept

Returns true if the mouse button is pressed


The documentation for this class was generated from the following file: