7 #ifndef __MYGUI_INPUT_MANAGER_H__
8 #define __MYGUI_INPUT_MANAGER_H__
41 bool injectMouseMove(
int _absx,
int _absy,
int _absz);
45 bool injectMousePress(
int _absx,
int _absy,
MouseButton _id);
49 bool injectMouseRelease(
int _absx,
int _absy,
MouseButton _id);
58 bool injectKeyRelease(
KeyCode _key);
61 bool isFocusMouse()
const;
63 bool isFocusKey()
const;
65 bool isCaptureMouse()
const;
68 void setKeyFocusWidget(
Widget* _widget);
70 void resetKeyFocusWidget(
Widget* _widget);
72 void resetKeyFocusWidget();
75 Widget* getMouseFocusWidget()
const;
77 Widget* getKeyFocusWidget()
const;
85 const IntPoint& getMousePosition()
const;
94 void addWidgetModal(
Widget* _widget);
96 void removeWidgetModal(
Widget* _widget);
99 bool isModalAny()
const;
102 bool isControlPressed()
const;
104 bool isShiftPressed()
const;
110 void resetMouseCaptureWidget();
113 void unlinkWidget(
Widget* _widget);
128 void _resetMouseFocusWidget();
132 void _unlinkWidget(
Widget* _widget);
134 void frameEntered(
float _frame);
136 void firstEncoding(
KeyCode _key,
bool bIsKeyPressed);
146 Widget* mWidgetMouseFocus;
151 float mTimerDoubleClick;
154 bool mIsShiftPressed;
156 bool mIsControlPressed;
181 #endif // __MYGUI_INPUT_MANAGER_H__