Gamedev Framework (gf)  0.3.0
A C++11 framework for 2D games
Public Member Functions | Static Public Member Functions | List of all members
gf::Keyboard Struct Reference

Some keyboard related functions. More...

#include <gf/Keyboard.h>

Public Member Functions

 Keyboard ()=delete
 Deleted constructor. More...
 

Static Public Member Functions

static const char * getScancodeName (Scancode scancode)
 Get the representation of a scancode. More...
 
static Scancode getScancodeFromName (const char *name)
 Get the scancode associated to a name. More...
 
static const char * getKeycodeName (Keycode keycode)
 Get the representation of a keycode. More...
 
static Keycode getKeycodeFromName (const char *name)
 Get the keycode associated to a name. More...
 

Detailed Description

Some keyboard related functions.

Constructor & Destructor Documentation

gf::Keyboard::Keyboard ( )
delete

Deleted constructor.

Member Function Documentation

static Keycode gf::Keyboard::getKeycodeFromName ( const char *  name)
static

Get the keycode associated to a name.

Parameters
nameThe name of the keycode
Returns
A keycode
See also
getKeycodeName()
static const char* gf::Keyboard::getKeycodeName ( Keycode  keycode)
static

Get the representation of a keycode.

Parameters
keycodeThe keycode
Returns
A string representing the keycode
See also
getKeycodeFromName()
static Scancode gf::Keyboard::getScancodeFromName ( const char *  name)
static

Get the scancode associated to a name.

Parameters
nameThe name of the scancode
Returns
A scancode
See also
getScancodeName()
static const char* gf::Keyboard::getScancodeName ( Scancode  scancode)
static

Get the representation of a scancode.

Parameters
scancodeThe scancode
Returns
A string representing the scancode
See also
getScancodeFromName()