![]() |
CMGDK r49-rc2
|
<按键映射类 更多...
#include <KeyMapping.H>
组合类型 | |
struct | KeyEvent |
公有成员 | |
KeyMapping () | |
virtual | ~KeyMapping () |
virtual bool | GetKeyDown (uint key, OnKeyEvent &ke) |
virtual bool | GetKeyPress (uint key, OnKeyEvent &ke) |
virtual bool | GetKeyUp (uint key, OnKeyEvent &ke) |
virtual bool | GetChar (uint key, OnKeyEvent &ke) |
virtual void | SetKeyDown (uint key, OnKeyEvent ke) |
virtual void | SetKeyPress (uint key, OnKeyEvent ke) |
virtual void | SetKeyUp (uint key, OnKeyEvent ke) |
virtual void | SetChar (uint key, OnKeyEvent ke) |
void | Clear () |
清除键盘映射 | |
保护成员 | |
typedef | DefEvent (void, OnKeyEvent,()) |
int | Find (ObjectList< KeyEvent > &, uint) |
bool | GetKeyMap (uint, ObjectList< KeyEvent > &, KeyMapping::OnKeyEvent &) |
void | SetKeyMap (uint, ObjectList< KeyEvent > &, KeyMapping::OnKeyEvent) |
bool | ProcKeyMap (uint key, ObjectList< KeyEvent > &list) |
virtual bool | Proc_KeyDown (uint key) |
virtual bool | Proc_KeyPress (uint key) |
virtual bool | Proc_KeyUp (uint key) |
virtual bool | Proc_Char (uint key) |
保护属性 | |
ObjectList< KeyEvent > | KeyDownList |
ObjectList< KeyEvent > | KeyPressList |
ObjectList< KeyEvent > | KeyUpList |
ObjectList< KeyEvent > | CharList |
<按键映射类
按键映射可自动在产生相应按键事件时,调用指定的事件函数
hgl::KeyMapping::KeyMapping | ( | ) |
hgl::KeyMapping::~KeyMapping | ( | ) | [virtual] |
void hgl::KeyMapping::Clear | ( | ) |
清除键盘映射
typedef hgl::KeyMapping::DefEvent | ( | void | , |
OnKeyEvent | , | ||
() | |||
) | [protected] |
int hgl::KeyMapping::Find | ( | ObjectList< KeyEvent > & | list, |
uint | key | ||
) | [protected] |
virtual bool hgl::KeyMapping::GetChar | ( | uint | key, |
OnKeyEvent & | ke | ||
) | [inline, virtual] |
virtual bool hgl::KeyMapping::GetKeyDown | ( | uint | key, |
OnKeyEvent & | ke | ||
) | [inline, virtual] |
bool hgl::KeyMapping::GetKeyMap | ( | uint | key, |
ObjectList< KeyEvent > & | list, | ||
KeyMapping::OnKeyEvent & | func | ||
) | [protected] |
virtual bool hgl::KeyMapping::GetKeyPress | ( | uint | key, |
OnKeyEvent & | ke | ||
) | [inline, virtual] |
virtual bool hgl::KeyMapping::GetKeyUp | ( | uint | key, |
OnKeyEvent & | ke | ||
) | [inline, virtual] |
virtual bool hgl::KeyMapping::Proc_Char | ( | uint | key | ) | [inline, protected, virtual] |
bool hgl::gui::Button::Proc_KeyDown | ( | uint | key | ) | [inline, protected, virtual] |
virtual bool hgl::KeyMapping::Proc_KeyPress | ( | uint | key | ) | [inline, protected, virtual] |
virtual bool hgl::KeyMapping::Proc_KeyUp | ( | uint | key | ) | [inline, protected, virtual] |
bool hgl::KeyMapping::ProcKeyMap | ( | uint | key, |
ObjectList< KeyEvent > & | list | ||
) | [protected] |
virtual void hgl::KeyMapping::SetChar | ( | uint | key, |
OnKeyEvent | ke | ||
) | [inline, virtual] |
virtual void hgl::KeyMapping::SetKeyDown | ( | uint | key, |
OnKeyEvent | ke | ||
) | [inline, virtual] |
void hgl::KeyMapping::SetKeyMap | ( | uint | key, |
ObjectList< KeyEvent > & | list, | ||
KeyMapping::OnKeyEvent | func | ||
) | [protected] |
virtual void hgl::KeyMapping::SetKeyPress | ( | uint | key, |
OnKeyEvent | ke | ||
) | [inline, virtual] |
virtual void hgl::KeyMapping::SetKeyUp | ( | uint | key, |
OnKeyEvent | ke | ||
) | [inline, virtual] |
ObjectList<KeyEvent> hgl::KeyMapping::CharList [protected] |
ObjectList<KeyEvent> hgl::KeyMapping::KeyDownList [protected] |
ObjectList<KeyEvent> hgl::KeyMapping::KeyPressList [protected] |
ObjectList<KeyEvent> hgl::KeyMapping::KeyUpList [protected] |