LLViewerKeyboard Class Reference

#include <llviewerkeyboard.h>

Collaboration diagram for LLViewerKeyboard:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLViewerKeyboard ()
BOOL handleKey (KEY key, MASK mask, BOOL repeated)
void bindNamedFunction (const char *name, LLKeyFunc func)
S32 loadBindings (const char *filename)
EKeyboardMode getMode ()
BOOL modeFromString (const char *string, S32 *mode)
void scanKey (KEY key, BOOL key_down, BOOL key_up, BOOL key_level)

Protected Types

typedef std::map< U32, U32key_remap_t

Protected Member Functions

BOOL bindKey (const S32 mode, const KEY key, const MASK mask, const char *function_name)

Protected Attributes

S32 mNamedFunctionCount
LLNamedFunction mNamedFunctions [MAX_NAMED_FUNCTIONS]
S32 mBindingCount [MODE_COUNT]
LLKeyBinding mBindings [MODE_COUNT][MAX_KEY_BINDINGS]
key_remap_t mRemapKeys [MODE_COUNT]
std::set< KEYmKeysSkippedByUI
BOOL mKeyHandledByUI [KEY_COUNT]


Detailed Description

Definition at line 61 of file llviewerkeyboard.h.


Member Typedef Documentation

typedef std::map<U32, U32> LLViewerKeyboard::key_remap_t [protected]

Definition at line 85 of file llviewerkeyboard.h.


Constructor & Destructor Documentation

LLViewerKeyboard::LLViewerKeyboard (  ) 


Member Function Documentation

BOOL LLViewerKeyboard::handleKey ( KEY  key,
MASK  mask,
BOOL  repeated 
)

Definition at line 629 of file llviewerkeyboard.cpp.

References FALSE, getMode(), gViewerWindow, LLViewerWindow::handleKey(), KEY_F12, lldebugst, llendl, mKeyHandledByUI, mKeysSkippedByUI, and mRemapKeys.

Referenced by LLViewerWindow::handleTranslatedKeyDown(), and LLViewerWindow::handleUnicodeChar().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerKeyboard::bindNamedFunction ( const char *  name,
LLKeyFunc  func 
)

Definition at line 586 of file llviewerkeyboard.cpp.

References i, LLNamedFunction::mFunction, LLNamedFunction::mName, mNamedFunctionCount, mNamedFunctions, and S32.

Referenced by bind_keyboard_functions().

Here is the caller graph for this function:

S32 LLViewerKeyboard::loadBindings ( const char *  filename  ) 

Definition at line 739 of file llviewerkeyboard.cpp.

References bindKey(), BUFFER_SIZE, indra::ipc::tokenstream::EOF, LLFile::fopen(), LLKeyboard::keyFromString(), llendl, llerrs, llinfos, LLKeyboard::maskFromString(), MAX_STRING, MODE_THIRD_PERSON, modeFromString(), and S32.

Referenced by LLAppViewer::init().

Here is the call graph for this function:

Here is the caller graph for this function:

EKeyboardMode LLViewerKeyboard::getMode (  ) 

Definition at line 835 of file llviewerkeyboard.cpp.

References LLAgent::cameraMouselook(), gAgent, LLAgent::getAvatarObject(), LLView::getVisible(), gMorphView, LLVOAvatar::mIsSitting, MODE_EDIT_AVATAR, MODE_FIRST_PERSON, MODE_SITTING, and MODE_THIRD_PERSON.

Referenced by handleKey(), and scanKey().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLViewerKeyboard::modeFromString ( const char *  string,
S32 mode 
)

Definition at line 595 of file llviewerkeyboard.cpp.

References FALSE, MODE_EDIT, MODE_EDIT_AVATAR, MODE_FIRST_PERSON, MODE_SITTING, MODE_THIRD_PERSON, and TRUE.

Referenced by loadBindings().

Here is the caller graph for this function:

void LLViewerKeyboard::scanKey ( KEY  key,
BOOL  key_down,
BOOL  key_up,
BOOL  key_level 
)

Definition at line 857 of file llviewerkeyboard.cpp.

References LLKeyboard::currentMask(), FALSE, LLKeyboard::getKeyRepeated(), getMode(), gKeyboard, i, KEYSTATE_DOWN, KEYSTATE_LEVEL, KEYSTATE_UP, mBindingCount, mBindings, LLKeyBinding::mFunction, mKeyHandledByUI, and S32.

Referenced by LLViewerWindow::handleScanKey().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLViewerKeyboard::bindKey ( const S32  mode,
const KEY  key,
const MASK  mask,
const char *  function_name 
) [protected]


Member Data Documentation

Definition at line 78 of file llviewerkeyboard.h.

Referenced by bindKey(), and bindNamedFunction().

Definition at line 79 of file llviewerkeyboard.h.

Referenced by bindKey(), and bindNamedFunction().

S32 LLViewerKeyboard::mBindingCount[MODE_COUNT] [protected]

Definition at line 82 of file llviewerkeyboard.h.

Referenced by bindKey(), LLViewerKeyboard(), and scanKey().

Definition at line 83 of file llviewerkeyboard.h.

Referenced by bindKey(), and scanKey().

key_remap_t LLViewerKeyboard::mRemapKeys[MODE_COUNT] [protected]

Definition at line 86 of file llviewerkeyboard.h.

Referenced by bindKey(), and handleKey().

std::set<KEY> LLViewerKeyboard::mKeysSkippedByUI [protected]

Definition at line 87 of file llviewerkeyboard.h.

Referenced by handleKey(), and LLViewerKeyboard().

Definition at line 88 of file llviewerkeyboard.h.

Referenced by handleKey(), LLViewerKeyboard(), and scanKey().


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

Generated on Fri May 16 09:27:40 2008 for SecondLife by  doxygen 1.5.5