Xrb::KeyMap Class Reference

Interface for alternate key maps (e.g. Dvorak). More...

#include <xrb_keymap.hpp>

Inheritance diagram for Xrb::KeyMap:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual std::string Name () const =0
virtual Key::Code MappedKey (Key::Code code) const =0

Static Public Member Functions

static KeyMap const * Create (std::string name)
 Creates a KeyMap implementation via name.


Detailed Description

Interface for alternate key maps (e.g. Dvorak).

This is really only necessary in windows, because the windows version of SDL does not handle alternate keyboard layouts correctly (it always uses standard QWERTY).

Definition at line 29 of file xrb_keymap.hpp.


Member Function Documentation

KeyMap const * Xrb::KeyMap::Create ( std::string  name  )  [static]

Creates a KeyMap implementation via name.

Valid values:

  • "dvorak" -- KeyMapDvorak

Anything else will create KeyMapIdentity .

Definition at line 18 of file xrb_keymap.cpp.

References Xrb::Util::MakeLowercase().

Referenced by Xrb::Singleton::Initialize().


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

Hosted by SourceForge.net Logo -- Generated on Fri Aug 21 21:46:39 2009 for XuqRijBuh by doxygen 1.5.8