3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Input.Keyboard Class Reference

Represents the keyboard input state. More...

#include <Keyboard.hpp>

Public Member Functions

bool IsKeyUp (Key k)
bool IsKeyDown (Key k)
bool IsAnyKeyDown (Key k)
 Keyboard ()
 Constructs an empty keyboard input state.
bool IsKeyDown (Key k) const noexcept
 Is the specified key currently down?
bool IsKeyUp (Key k) const noexcept
 Is the specified key currently up?
bool IsAnyKeyDown () const noexcept
 Is any key currently down?
KeyState operator[] (const Key k)
 Returns the key state of the specified key.
uint8_t * Buffer () const noexcept
 Low level access to the internal key buffer.

Properties

KeyState this[Key k] [get]

Friends

class Native::Window

Detailed Description

Represents the keyboard input state.

Constructor & Destructor Documentation

◆ Keyboard()

Keyboard::Keyboard ( )

Constructs an empty keyboard input state.

Member Function Documentation

◆ Buffer()

uint8_t * Keyboard::Buffer ( ) const
noexcept

Low level access to the internal key buffer.

Returns
An pointer to the buffer of type uint8_t[10]

◆ IsAnyKeyDown() [1/2]

bool Engine3DRadSpace.Input.Keyboard.IsAnyKeyDown ( Key k)
inline

◆ IsAnyKeyDown() [2/2]

Is any key currently down?

Returns
True if any key is down, false otherwise

◆ IsKeyDown() [1/2]

bool Engine3DRadSpace.Input.Keyboard.IsKeyDown ( Key k)
inline

◆ IsKeyDown() [2/2]

bool Keyboard::IsKeyDown ( Key k) const
noexcept

Is the specified key currently down?

Parameters
kKey to check
Returns
True if the key is down, false otherwise

◆ IsKeyUp() [1/2]

bool Engine3DRadSpace.Input.Keyboard.IsKeyUp ( Key k)
inline

◆ IsKeyUp() [2/2]

bool Keyboard::IsKeyUp ( Key k) const
noexcept

Is the specified key currently up?

Parameters
kKey to check
Returns
True if the key is up, false otherwise

◆ operator[]()

KeyState Keyboard::operator[] ( const Key k)

Returns the key state of the specified key.

Parameters
kspecified key
Returns
Key state of the specified key

◆ Native::Window

friend class Native::Window
friend

Property Documentation

◆ this[Key k]

KeyState Engine3DRadSpace.Input.Keyboard.this[Key k]
get

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