JugiMap Framework
Keyboard Class Reference

The Keyboard class provide information about keyboard input. More...

#include <jmInput.h>

Public Member Functions

bool IsKeyPressed (KeyCode _keyCode)
 Returns true if a key with the given *_keyCode* is pressed; otherwise returns false. More...
 
bool IsKeyDown (KeyCode _keyCode)
 Returns true if a key with the given *_keyCode* is hold down; otherwise returns false. More...
 
bool IsKeyReleased (KeyCode _keyCode)
 Returns true if a key with the given *_keyCode* is released; otherwise returns false. More...
 
char GetCharPressed ()
 Returns the ascii code of a printable character if pressed; otherwise returns 0;. More...
 
void Reset ()
 Reset all key states. More...
 

Detailed Description

The Keyboard class provide information about keyboard input.

Member Function Documentation

◆ IsKeyPressed()

bool IsKeyPressed ( KeyCode  _keyCode)

Returns true if a key with the given *_keyCode* is pressed; otherwise returns false.

◆ IsKeyDown()

bool IsKeyDown ( KeyCode  _keyCode)

Returns true if a key with the given *_keyCode* is hold down; otherwise returns false.

◆ IsKeyReleased()

bool IsKeyReleased ( KeyCode  _keyCode)

Returns true if a key with the given *_keyCode* is released; otherwise returns false.

◆ GetCharPressed()

char GetCharPressed ( )
inline

Returns the ascii code of a printable character if pressed; otherwise returns 0;.

◆ Reset()

void Reset ( )

Reset all key states.


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