Keyboard class that handles inputs from computer keyboards.
More...
#include <Keyboard.hpp>
Keyboard class that handles inputs from computer keyboards.
◆ Keyboard()
◆ ~Keyboard()
◆ getKey()
int Keyboard::getKey |
( |
| ) |
const |
Get the Key value.
- Returns
- int key value
◆ getKeyDCharCode()
int Keyboard::getKeyDCharCode |
( |
| ) |
const |
Get the Key D Char Code object.
- Returns
- int charcode
◆ getKeyDownCharCode()
int Keyboard::getKeyDownCharCode |
( |
| ) |
const |
Get the Key Down Key Code object.
- Returns
- int charcode
◆ getKeyEnterCharCode()
int Keyboard::getKeyEnterCharCode |
( |
| ) |
const |
Get the Key Enter Char Code object.
- Returns
- int charcode
◆ getKeyLeftCharCode()
int Keyboard::getKeyLeftCharCode |
( |
| ) |
const |
Get the Key Left Key Code object.
- Returns
- int charcode
◆ getKeyRightCharCode()
int Keyboard::getKeyRightCharCode |
( |
| ) |
const |
Get the Key Down Char Code object.
- Returns
- int charcode
◆ getKeySCharCode()
int Keyboard::getKeySCharCode |
( |
| ) |
const |
Get the Key S Char Code object.
- Returns
- int charcode
◆ getKeysHasBeenPressed()
template<typename ENUM >
std::map<ENUM, bool> Keyboard::getKeysHasBeenPressed |
( |
std::map< ENUM, int > |
map | ) |
const |
|
inline |
Get the Keys Has Been Pressed object.
- Template Parameters
-
- Parameters
-
- Returns
- std::map<ENUM, bool> map of the keys that have been pressed
◆ getKeySpaceCharCode()
int Keyboard::getKeySpaceCharCode |
( |
| ) |
const |
Get the Key Space Char Code object.
- Returns
- int charcode
◆ getKeysPressed()
template<typename ENUM >
std::map<ENUM, bool> Keyboard::getKeysPressed |
( |
std::map< ENUM, int > |
map | ) |
const |
|
inline |
Get the Keys Pressed object.
- Template Parameters
-
- Parameters
-
- Returns
- std::map<ENUM, bool>
◆ getKeyUpCharCode()
int Keyboard::getKeyUpCharCode |
( |
| ) |
const |
Get the Key Up Char Code object.
- Returns
- int charcode
◆ getPressedCharcode()
int Keyboard::getPressedCharcode |
( |
| ) |
const |
Get the Pressed Charcode object.
- Returns
- int charcode
◆ getPressedKeycode()
int Keyboard::getPressedKeycode |
( |
| ) |
const |
Get the Pressed Keycode object.
- Returns
- int keycode
◆ hasBeenPressed()
bool Keyboard::hasBeenPressed |
( |
int |
key | ) |
const |
Check if a key has been pressed.
- Parameters
-
- Returns
- true
-
false
◆ hasBeenReleased()
bool Keyboard::hasBeenReleased |
( |
int |
key | ) |
const |
Check if a key has been released.
- Parameters
-
- Returns
- true
-
false
◆ isBeingPressed()
bool Keyboard::isBeingPressed |
( |
int |
key | ) |
const |
Check if a key is being pressed.
- Parameters
-
- Returns
- true
-
false
◆ isNotBeingPressed()
bool Keyboard::isNotBeingPressed |
( |
int |
key | ) |
const |
Check if a key is not being pressed.
- Parameters
-
- Returns
- true
-
false
◆ setExitKey()
void Keyboard::setExitKey |
( |
int |
key | ) |
|
Set the Exit Key object.
- Parameters
-
The documentation for this class was generated from the following files:
- /home/gurvan-le-letty/delivery/epitech_delivery/semester_5/B-CPP-500/B-CPP-500-PAR-5-1-rtype-martin.vanaud/Client/Source/GraphicalLib/Keyboard/Keyboard.hpp
- /home/gurvan-le-letty/delivery/epitech_delivery/semester_5/B-CPP-500/B-CPP-500-PAR-5-1-rtype-martin.vanaud/Client/Source/GraphicalLib/Keyboard/Keyboard.cpp