MyGUI
3.0.1
|
#include <MyGUI_InputManager.h>
Static Public Member Functions | |
static InputManager & | getInstance () |
static InputManager * | getInstancePtr () |
Data Fields | |
delegates::CMultiDelegate1 < Widget * > | eventChangeMouseFocus |
delegates::CMultiDelegate1 < Widget * > | eventChangeKeyFocus |
Definition at line 41 of file MyGUI_InputManager.h.
MyGUI::InputManager::InputManager | ( | ) |
MyGUI::InputManager::~InputManager | ( | ) |
void MyGUI::InputManager::addWidgetModal | ( | Widget * | _widget | ) |
Add modal widget - all other widgets inaccessible while modal widget exist
Definition at line 496 of file MyGUI_InputManager.cpp.
|
static |
|
static |
|
inline |
Get key focused widget
Definition at line 88 of file MyGUI_InputManager.h.
|
inline |
Get position of last left mouse button press
Definition at line 90 of file MyGUI_InputManager.h.
|
inline |
Get mouse focused widget
Definition at line 86 of file MyGUI_InputManager.h.
|
inline |
Get current mouse position
Definition at line 92 of file MyGUI_InputManager.h.
IntPoint MyGUI::InputManager::getMousePositionByLayer | ( | ) |
Definition at line 594 of file MyGUI_InputManager.cpp.
void MyGUI::InputManager::initialise | ( | ) |
Definition at line 38 of file MyGUI_InputManager.cpp.
Inject KeyPress event
Definition at line 338 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::injectKeyRelease | ( | KeyCode | _key | ) |
Inject KeyRelease event
Definition at line 357 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::injectMouseMove | ( | int | _absx, |
int | _absy, | ||
int | _absz | ||
) |
Inject MouseMove event
Definition at line 74 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::injectMousePress | ( | int | _absx, |
int | _absy, | ||
MouseButton | _id | ||
) |
Inject MousePress event
Definition at line 219 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::injectMouseRelease | ( | int | _absx, |
int | _absy, | ||
MouseButton | _id | ||
) |
Inject MouseRelease event
Definition at line 292 of file MyGUI_InputManager.cpp.
|
inline |
Is any widget captured mouse
Definition at line 76 of file MyGUI_InputManager.h.
|
inline |
Is control button pressed
Definition at line 110 of file MyGUI_InputManager.h.
|
inline |
Is any widget have key focus
Definition at line 74 of file MyGUI_InputManager.h.
|
inline |
Is any widget have mouse focus
Definition at line 72 of file MyGUI_InputManager.h.
|
inline |
Return true if any modal widget exist
Definition at line 107 of file MyGUI_InputManager.h.
|
inline |
Is shift button pressed
Definition at line 112 of file MyGUI_InputManager.h.
void MyGUI::InputManager::removeWidgetModal | ( | Widget * | _widget | ) |
Remove modal widget
Definition at line 509 of file MyGUI_InputManager.cpp.
void MyGUI::InputManager::resetKeyFocusWidget | ( | Widget * | _widget | ) |
Drop key focus for _widget
Definition at line 588 of file MyGUI_InputManager.cpp.
|
inline |
Drop any key focus
Definition at line 83 of file MyGUI_InputManager.h.
|
inline |
Reset mouse capture (for example when we dragging and application lost focus you should call this)
Definition at line 117 of file MyGUI_InputManager.h.
void MyGUI::InputManager::resetMouseFocusWidget | ( | ) |
Drop any mouse focus
Definition at line 444 of file MyGUI_InputManager.cpp.
void MyGUI::InputManager::setKeyFocusWidget | ( | Widget * | _widget | ) |
Set key focus for _widget
Definition at line 380 of file MyGUI_InputManager.cpp.
void MyGUI::InputManager::shutdown | ( | ) |
Definition at line 62 of file MyGUI_InputManager.cpp.
|
inline |
Definition at line 119 of file MyGUI_InputManager.h.
delegates::CMultiDelegate1<Widget*> MyGUI::InputManager::eventChangeKeyFocus |
Event :
signature : void method(MyGUI::Widget* _widget)
_widget |
Definition at line 133 of file MyGUI_InputManager.h.
delegates::CMultiDelegate1<Widget*> MyGUI::InputManager::eventChangeMouseFocus |
Event :
signature : void method(MyGUI::Widget* _widget)
_widget |
Definition at line 126 of file MyGUI_InputManager.h.