|
MyGUI
3.2.0
|
#include <MyGUI_InputManager.h>
Inheritance diagram for MyGUI::InputManager:Data Fields | |
| delegates::CMultiDelegate1 < Widget * > | eventChangeMouseFocus |
| delegates::CMultiDelegate1 < Widget * > | eventChangeKeyFocus |
Additional Inherited Members | |
Public Types inherited from MyGUI::Singleton< InputManager > | |
| typedef Singleton< InputManager > | Base |
Static Public Member Functions inherited from MyGUI::Singleton< InputManager > | |
| static InputManager & | getInstance () |
| static InputManager * | getInstancePtr () |
| static const char * | getClassTypeName () |
Static Protected Attributes inherited from MyGUI::Singleton< InputManager > | |
| static const char * | mClassTypeName |
Definition at line 42 of file MyGUI_InputManager.h.
| MyGUI::InputManager::InputManager | ( | ) |
Definition at line 39 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::_resetMouseFocusWidget | ( | ) |
Definition at line 448 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::addWidgetModal | ( | Widget * | _widget | ) |
Add modal widget - all other widgets inaccessible while modal widget exist
Definition at line 502 of file MyGUI_InputManager.cpp.
| Widget * MyGUI::InputManager::getKeyFocusWidget | ( | ) | const |
Get key focused widget
Definition at line 640 of file MyGUI_InputManager.cpp.
| const IntPoint & MyGUI::InputManager::getLastPressedPosition | ( | MouseButton | _id | ) | const |
Get position of last mouse button press. Position calculated on specific layer where mouse was pressed.
Definition at line 645 of file MyGUI_InputManager.cpp.
| Widget * MyGUI::InputManager::getMouseFocusWidget | ( | ) | const |
Get mouse focused widget
Definition at line 635 of file MyGUI_InputManager.cpp.
| const IntPoint & MyGUI::InputManager::getMousePosition | ( | ) | const |
Get current mouse position on screen
Definition at line 654 of file MyGUI_InputManager.cpp.
| IntPoint MyGUI::InputManager::getMousePositionByLayer | ( | ) |
Get mouse position on current layer. This position might different from getMousePosition() if mouse is over non-2d layer.
Definition at line 603 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::initialise | ( | ) |
Definition at line 55 of file MyGUI_InputManager.cpp.
Inject KeyPress event
Definition at line 353 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::injectKeyRelease | ( | KeyCode | _key | ) |
Inject KeyRelease event
Definition at line 372 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::injectMouseMove | ( | int | _absx, |
| int | _absy, | ||
| int | _absz | ||
| ) |
Inject MouseMove event
Definition at line 94 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::injectMousePress | ( | int | _absx, |
| int | _absy, | ||
| MouseButton | _id | ||
| ) |
Inject MousePress event
Definition at line 228 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::injectMouseRelease | ( | int | _absx, |
| int | _absy, | ||
| MouseButton | _id | ||
| ) |
Inject MouseRelease event
Definition at line 300 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::isCaptureMouse | ( | ) | const |
Is any widget captured mouse
Definition at line 620 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::isControlPressed | ( | ) | const |
Is control button pressed
Definition at line 664 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::isFocusKey | ( | ) | const |
Is any widget have key focus (any widget might have it, not only EditBox or something similar)
Definition at line 615 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::isFocusMouse | ( | ) | const |
Is any widget have mouse focus
Definition at line 610 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::isModalAny | ( | ) | const |
Return true if any modal widget exist
Definition at line 659 of file MyGUI_InputManager.cpp.
| bool MyGUI::InputManager::isShiftPressed | ( | ) | const |
Is shift button pressed
Definition at line 669 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::removeWidgetModal | ( | Widget * | _widget | ) |
Remove modal widget
Definition at line 516 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::resetKeyFocusWidget | ( | Widget * | _widget | ) |
Drop key focus for _widget
Definition at line 597 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::resetKeyFocusWidget | ( | ) |
Drop any key focus
Definition at line 630 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::resetMouseCaptureWidget | ( | ) |
Reset mouse capture. For example when we dragging and application lost focus you should call this.
Definition at line 674 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::setKeyFocusWidget | ( | Widget * | _widget | ) |
Set key focus for _widget
Definition at line 396 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::shutdown | ( | ) |
Definition at line 82 of file MyGUI_InputManager.cpp.
| void MyGUI::InputManager::unlinkWidget | ( | Widget * | _widget | ) |
Unlink widget from input manager.
Definition at line 682 of file MyGUI_InputManager.cpp.
| delegates::CMultiDelegate1<Widget*> MyGUI::InputManager::eventChangeKeyFocus |
Event : MultiDelegate. Key focus was changed.
signature : void method(MyGUI::Widget* _widget)
| _widget |
Definition at line 142 of file MyGUI_InputManager.h.
| delegates::CMultiDelegate1<Widget*> MyGUI::InputManager::eventChangeMouseFocus |
Event : MultiDelegate. Mouse focus was changed.
signature : void method(MyGUI::Widget* _widget)
| _widget |
Definition at line 135 of file MyGUI_InputManager.h.
1.8.5