Bomberman
Public Types | Static Public Member Functions | List of all members
RAY::Controller::Keyboard Class Reference

Keyboard event manager. More...

#include <Keyboard.hpp>

Collaboration diagram for RAY::Controller::Keyboard:

Public Types

typedef ::KeyboardKey Key
 

Static Public Member Functions

static bool isPressed (Key)
 
static bool isDown (Key)
 
static bool isReleased (Key)
 
static bool isUp (Key)
 
static std::vector< Keyboard::KeygetPressedKeys (void)
 Fetch currently pressed keys. More...
 
static std::vector< char > getPressedChars (void)
 Fetch currently pressed keys. More...
 

Detailed Description

Keyboard event manager.

Member Typedef Documentation

◆ Key

typedef ::KeyboardKey RAY::Controller::Keyboard::Key

Member Function Documentation

◆ getPressedChars()

std::vector< char > RAY::Controller::Keyboard::getPressedChars ( void  )
static

Fetch currently pressed keys.

Returns
a vector containing char of currently pressed keys

◆ getPressedKeys()

std::vector< RAY::Controller::Keyboard::Key > RAY::Controller::Keyboard::getPressedKeys ( void  )
static

Fetch currently pressed keys.

Returns
a vector containing keycode of currently pressed keys

◆ isDown()

bool RAY::Controller::Keyboard::isDown ( Key  key)
static
Returns
true if Key is down on the keyboard
Parameters
KeyThe keycode of the key

◆ isPressed()

bool RAY::Controller::Keyboard::isPressed ( Key  key)
static
Returns
true if Key is pressed on the keyboard
Parameters
KeyThe keycode of the key

◆ isReleased()

bool RAY::Controller::Keyboard::isReleased ( Key  key)
static
Returns
true if Key is released on the keyboard
Parameters
KeyThe keycode of the key

◆ isUp()

bool RAY::Controller::Keyboard::isUp ( Key  key)
static
Returns
true if Key is up on the keyboard
Parameters
KeyThe keycode of the key

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