Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Keymap Class Reference


Detailed Description

Table of defined keys.

Definition at line 14 of file Keymap.h.

Public Member Functions

void registerKey (const KeyStroke &stroke, const KeyDesc &desc)
int indexPressed (const KeyStroke &stroke) const
 Return index of pressed key.


Member Function Documentation

int Keymap::indexPressed const KeyStroke stroke  )  const
 

Return index of pressed key.

Returns:
index or -1

Definition at line 25 of file Keymap.cpp.

00026 {
00027     int result = -1;
00028     t_keys::const_iterator it = m_keys.find(stroke);
00029     if (m_keys.end() != it) {
00030         result = it->second.getIndex();
00031     }
00032     return result;
00033 }

void Keymap::registerKey const KeyStroke stroke,
const KeyDesc desc
 

Definition at line 15 of file Keymap.cpp.

00016 {
00017     m_keys.insert(std::pair<KeyStroke,KeyDesc>(stroke, desc));
00018 }


The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:55:30 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2