MyGUI 3.4.2
|
#include <MyGUI_InputManager.h>
Static Public Member Functions | |
static InputManager & | getInstance () |
static InputManager * | getInstancePtr () |
static const char * | getClassTypeName () |
Data Fields | |
delegates::CMultiDelegate1< Widget * > | eventChangeMouseFocus |
delegates::CMultiDelegate1< Widget * > | eventChangeKeyFocus |
Definition at line 27 of file MyGUI_InputManager.h.
MyGUI::InputManager::InputManager | ( | ) |
Definition at line 25 of file MyGUI_InputManager.cpp.
void MyGUI::InputManager::_resetMouseFocusWidget | ( | ) |
Definition at line 454 of file MyGUI_InputManager.cpp.
Add modal widget - all other widgets inaccessible while modal widget exist
Definition at line 512 of file MyGUI_InputManager.cpp.
|
static |
|
static |
Widget * MyGUI::InputManager::getKeyFocusWidget | ( | ) | const |
Get key focused widget
Definition at line 652 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 657 of file MyGUI_InputManager.cpp.
Widget * MyGUI::InputManager::getMouseFocusWidget | ( | ) | const |
Get mouse focused widget
Definition at line 647 of file MyGUI_InputManager.cpp.
Get current mouse position on screen
Definition at line 666 of file MyGUI_InputManager.cpp.
IntPoint MyGUI::InputManager::getMousePositionByLayer | ( | ) | const |
Get mouse position on current layer. This position might different from getMousePosition() if mouse is over non-2d layer.
Definition at line 615 of file MyGUI_InputManager.cpp.
void MyGUI::InputManager::initialise | ( | ) |
Definition at line 45 of file MyGUI_InputManager.cpp.
Inject KeyPress event
Definition at line 354 of file MyGUI_InputManager.cpp.
Inject KeyRelease event
Definition at line 373 of file MyGUI_InputManager.cpp.
Inject MouseMove event
Definition at line 87 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::injectMousePress | ( | int | _absx, |
int | _absy, | ||
MouseButton | _id | ||
) |
Inject MousePress event
Definition at line 225 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::injectMouseRelease | ( | int | _absx, |
int | _absy, | ||
MouseButton | _id | ||
) |
Inject MouseRelease event
Definition at line 298 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::isAltPressed | ( | ) | const |
Is alt button pressed
Definition at line 686 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::isCaptureMouse | ( | ) | const |
Is any widget captured mouse
Definition at line 632 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::isControlPressed | ( | ) | const |
Is control button pressed
Definition at line 676 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 627 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::isFocusMouse | ( | ) | const |
Is any widget have mouse focus
Definition at line 622 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::isMetaPressed | ( | ) | const |
Is meta ("Windows key" or macOS "Command" key) button pressed
Definition at line 691 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::isModalAny | ( | ) | const |
Return true if any modal widget exist
Definition at line 671 of file MyGUI_InputManager.cpp.
bool MyGUI::InputManager::isShiftPressed | ( | ) | const |
Is shift button pressed
Definition at line 681 of file MyGUI_InputManager.cpp.
Remove modal widget
Definition at line 526 of file MyGUI_InputManager.cpp.
void MyGUI::InputManager::resetKeyFocusWidget | ( | ) |
Drop any key focus
Definition at line 642 of file MyGUI_InputManager.cpp.
Drop key focus for _widget
Definition at line 609 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 696 of file MyGUI_InputManager.cpp.
Set key focus for _widget
Definition at line 401 of file MyGUI_InputManager.cpp.
void MyGUI::InputManager::shutdown | ( | ) |
Definition at line 75 of file MyGUI_InputManager.cpp.
Unlink widget from input manager.
Definition at line 704 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 129 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 123 of file MyGUI_InputManager.h.