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 (WidgetPtr _widget)
void resetKeyFocusWidget (WidgetPtr _widget)
void resetKeyFocusWidget ()
WidgetPtr getMouseFocusWidget ()
WidgetPtr getKeyFocusWidget ()
const IntPointgetLastLeftPressed ()
const IntPointgetMousePosition ()
void resetMouseFocusWidget ()
void addWidgetModal (WidgetPtr _widget)
void removeWidgetModal (WidgetPtr _widget)
bool isModalAny ()
bool isControlPressed ()
bool isShiftPressed ()
void resetMouseCaptureWidget ()
void unlinkWidget (WidgetPtr _widget)

Data Fields

delegates::CMultiDelegate1
< WidgetPtr
eventChangeMouseFocus
delegates::CMultiDelegate1
< WidgetPtr
eventChangeKeyFocus

Detailed Description

Definition at line 40 of file MyGUI_InputManager.h.


Member Function Documentation

void MyGUI::InputManager::addWidgetModal ( WidgetPtr  _widget  ) 

Add modal widget - all other widgets inaccessible while modal widget exist

Definition at line 472 of file MyGUI_InputManager.cpp.

WidgetPtr MyGUI::InputManager::getKeyFocusWidget (  )  [inline]

Get key focused widget

Definition at line 87 of file MyGUI_InputManager.h.

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

Get position of last left mouse button press

Definition at line 89 of file MyGUI_InputManager.h.

WidgetPtr MyGUI::InputManager::getMouseFocusWidget (  )  [inline]

Get mouse focused widget

Definition at line 85 of file MyGUI_InputManager.h.

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

Get current mouse position

Definition at line 91 of file MyGUI_InputManager.h.

void MyGUI::InputManager::initialise (  ) 

Definition at line 39 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 314 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 333 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 199 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 268 of file MyGUI_InputManager.cpp.

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

Is any widget captured mouse

Definition at line 75 of file MyGUI_InputManager.h.

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

Is control button pressed

Definition at line 107 of file MyGUI_InputManager.h.

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

Is any widget have key focus

Definition at line 73 of file MyGUI_InputManager.h.

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

Is any widget have mouse focus

Definition at line 71 of file MyGUI_InputManager.h.

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

Return true if any modal widget exist

Definition at line 104 of file MyGUI_InputManager.h.

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

Is shift button pressed

Definition at line 109 of file MyGUI_InputManager.h.

void MyGUI::InputManager::removeWidgetModal ( WidgetPtr  _widget  ) 

Remove modal widget

Definition at line 485 of file MyGUI_InputManager.cpp.

void MyGUI::InputManager::resetKeyFocusWidget (  )  [inline]

Drop any key focus

Definition at line 82 of file MyGUI_InputManager.h.

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

Drop key focus for _widget

Definition at line 564 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 114 of file MyGUI_InputManager.h.

void MyGUI::InputManager::resetMouseFocusWidget (  ) 

Drop any mouse focus

Definition at line 420 of file MyGUI_InputManager.cpp.

void MyGUI::InputManager::setKeyFocusWidget ( WidgetPtr  _widget  ) 

Set key focus for _widget

Definition at line 356 of file MyGUI_InputManager.cpp.

void MyGUI::InputManager::shutdown (  ) 

Definition at line 62 of file MyGUI_InputManager.cpp.

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

Definition at line 116 of file MyGUI_InputManager.h.


Field Documentation

Event :
signature : void method(MyGUI::WidgetPtr _widget)

Parameters:
_widget 

Definition at line 130 of file MyGUI_InputManager.h.

Event :
signature : void method(MyGUI::WidgetPtr _widget)

Parameters:
_widget 

Definition at line 123 of file MyGUI_InputManager.h.


The documentation for this class was generated from the following files:

Generated on 5 Dec 2009 for MyGUI by  doxygen 1.6.1