Keyboard.cpp File Reference

Keyboard input platform-common code. More...

#include "Keyboard.h"
#include "../base/DebugRouter.h"
#include "../base/Memory.h"
#include "../gfxsetup/GFXSetup.h"
#include <map>
#include <vector>
#include <algorithm>

Include dependency graph for Keyboard.cpp:


Namespaces

namespace  GFX_INTERNAL
namespace  INPUT_INTERNAL
namespace  INPUT
namespace  INPUT::KEYBOARD

Functions

const std::string & INPUT::KEYBOARD::GetFriendlyName (uint8 key)
 Returns the friendly name for a key value.
bool INPUT::KEYBOARD::IsKeyDown (uint8 key)
 Returns whether the specified key is currently down.
const std::vector< uint8 > & INPUT::KEYBOARD::GetCurrentlyPressedKeys ()
 Returns a list of keys that are currently pressed down.
const std::vector< uint8 > & INPUT::KEYBOARD::GetNewlyPressedKeys ()
 Returns a list of keys that were newly pressed within the last frame.
bool INPUT::KEYBOARD::UpdateTypedText (std::string &textToEdit)
 Updates a string with text typed by the user. If the user had pressed backspace, the last character is removed. Enter is also stored in the string as
. Returns true if the text was changed.
void INPUT::KEYBOARD::SetCaptureMode (bool captureTypedText, bool captureKeyState)
 Sets the capture mode for keyboard input. This controls whether typed text or key state is captured and made available to the app. By default both are captured.
bool INPUT::KEYBOARD::IsCapturingText ()
 Returns whether typed text is currently being captured.
bool INPUT::KEYBOARD::IsCapturingState ()
 Returns whether key state is currently being captured.

Detailed Description

Keyboard input platform-common code.

Keyboard input for linux.


Generated on Sat Aug 9 15:05:07 2008 for MPMA Framework by  doxygen 1.5.6