MyGUI::InputManager Class Reference

#include <MyGUI_InputManager.h>

Inheritance diagram for MyGUI::InputManager:
Inheritance graph
[legend]

Public Member Functions

void initialise ()
void shutdown ()
bool injectMouseMove (int _absx, int _absy, int _absz)
bool injectMousePress (int _absx, int _absy, MouseButton _id)
bool injectMouseRelease (int _absx, int _absy, MouseButton _id)
bool injectKeyPress (KeyCode _key, Char _text=0)
bool injectKeyRelease (KeyCode _key)
bool isFocusMouse ()
bool isFocusKey ()
bool isCaptureMouse ()
void setKeyFocusWidget (Widget *_widget)
void resetKeyFocusWidget (Widget *_widget)
void resetKeyFocusWidget ()
WidgetgetMouseFocusWidget ()
WidgetgetKeyFocusWidget ()
const IntPointgetLastLeftPressed ()
const IntPointgetMousePosition ()
IntPoint getMousePositionByLayer ()
void resetMouseFocusWidget ()
void addWidgetModal (Widget *_widget)
void removeWidgetModal (Widget *_widget)
bool isModalAny ()
bool isControlPressed ()
bool isShiftPressed ()
void resetMouseCaptureWidget ()
void unlinkWidget (Widget *_widget)

Data Fields

delegates::CMultiDelegate1
< Widget * > 
eventChangeMouseFocus
delegates::CMultiDelegate1
< Widget * > 
eventChangeKeyFocus

Detailed Description

Definition at line 41 of file MyGUI_InputManager.h.


Member Function Documentation

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.

Widget* MyGUI::InputManager::getKeyFocusWidget (  )  [inline]

Get key focused widget

Definition at line 88 of file MyGUI_InputManager.h.

const IntPoint& MyGUI::InputManager::getLastLeftPressed (  )  [inline]

Get position of last left mouse button press

Definition at line 90 of file MyGUI_InputManager.h.

Widget* MyGUI::InputManager::getMouseFocusWidget (  )  [inline]

Get mouse focused widget

Definition at line 86 of file MyGUI_InputManager.h.

const IntPoint& MyGUI::InputManager::getMousePosition (  )  [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.

bool MyGUI::InputManager::injectKeyPress ( KeyCode  _key,
Char  _text = 0 
)

Inject KeyPress event

Returns:
true if event has been processed by GUI

Definition at line 338 of file MyGUI_InputManager.cpp.

bool MyGUI::InputManager::injectKeyRelease ( KeyCode  _key  ) 

Inject KeyRelease event

Returns:
true if event has been processed by GUI

Definition at line 357 of file MyGUI_InputManager.cpp.

bool MyGUI::InputManager::injectMouseMove ( int  _absx,
int  _absy,
int  _absz 
)

Inject MouseMove event

Returns:
true if event has been processed by GUI

Definition at line 74 of file MyGUI_InputManager.cpp.

bool MyGUI::InputManager::injectMousePress ( int  _absx,
int  _absy,
MouseButton  _id 
)

Inject MousePress event

Returns:
true if event has been processed by GUI

Definition at line 219 of file MyGUI_InputManager.cpp.

bool MyGUI::InputManager::injectMouseRelease ( int  _absx,
int  _absy,
MouseButton  _id 
)

Inject MouseRelease event

Returns:
true if event has been processed by GUI

Definition at line 292 of file MyGUI_InputManager.cpp.

bool MyGUI::InputManager::isCaptureMouse (  )  [inline]

Is any widget captured mouse

Definition at line 76 of file MyGUI_InputManager.h.

bool MyGUI::InputManager::isControlPressed (  )  [inline]

Is control button pressed

Definition at line 110 of file MyGUI_InputManager.h.

bool MyGUI::InputManager::isFocusKey (  )  [inline]

Is any widget have key focus

Definition at line 74 of file MyGUI_InputManager.h.

bool MyGUI::InputManager::isFocusMouse (  )  [inline]

Is any widget have mouse focus

Definition at line 72 of file MyGUI_InputManager.h.

bool MyGUI::InputManager::isModalAny (  )  [inline]

Return true if any modal widget exist

Definition at line 107 of file MyGUI_InputManager.h.

bool MyGUI::InputManager::isShiftPressed (  )  [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 (  )  [inline]

Drop any key focus

Definition at line 83 of file MyGUI_InputManager.h.

void MyGUI::InputManager::resetKeyFocusWidget ( Widget _widget  ) 

Drop key focus for _widget

Definition at line 588 of file MyGUI_InputManager.cpp.

void MyGUI::InputManager::resetMouseCaptureWidget (  )  [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.

void MyGUI::InputManager::unlinkWidget ( Widget _widget  )  [inline]

Definition at line 119 of file MyGUI_InputManager.h.


Field Documentation

delegates::CMultiDelegate1<Widget*> MyGUI::InputManager::eventChangeKeyFocus

Event :
signature : void method(MyGUI::Widget* _widget)

Parameters:
_widget 

Definition at line 133 of file MyGUI_InputManager.h.

delegates::CMultiDelegate1<Widget*> MyGUI::InputManager::eventChangeMouseFocus

Event :
signature : void method(MyGUI::Widget* _widget)

Parameters:
_widget 

Definition at line 126 of file MyGUI_InputManager.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 17 15:31:13 2011 for MyGUI by  doxygen 1.6.3