Passes events down the widget tree.
Public Methods
-
TEventDispatcher(TWidgetTree* _tree)
- Contruct an event dispatcher that uses the given widget tree
-
TWidgetTree* GetWidgetTree()
- Returns the widget tree that this object dispatches to
-
bool GetJoystickAxisRepeat() const
- Returns true if joystick axis repeat is enabled
-
bool GetJoystickEvents() const
- Returns true if joystick events are enabled
-
bool GetJoystickCursor() const
- Returns true if joystick cursor is enabled
-
unsigned int GetJoystickCursorSensitivity() const
- Returns the joystick cursor sensitivity
-
unsigned int GetJoystickCursorNum() const
- Returns the joystick number that controls the cursor
-
TWidget* GetKeyboardFocus()
- Returns the widget receiving keyboard focus
-
TWidget* GetMouseFocus()
- Returns the widget receiving mouse input
-
TWidget* GetJoystickFocus()
- Returns the widget receiving joystick input
-
void SetJoystickAxisRepeat(bool enable)
- Enables/disables joystick axis repeat.
-
void SetJoystickEvents(bool enable)
- Enables/disables joystick events.
-
void SetJoystickCursor(bool enable)
- Enables/disables the joystick cursor.
-
void SetJoystickCursorSensitvity(unsigned int _s)
- Sets the joystick cursor sensitivity
-
void SetJoystickCursorNum(unsigned int _joy)
- Sets which joystick controls the cursor
-
void SetKeyboardFocus(TWidget* w)
- Sets the widget to recieve keyboard input
-
void SetJoystickFocus(TWidget* w)
- Sets the widget to receive joystick input
-
void HandleMouseDown(int X, int Y, TMouseButton button)
- Dispatch the mouse down event to the widget tree.
-
void HandleMouseMove(int X, int Y, int RelX, int RelY, TMouseButton button)
- Dispatch the mouse move event to the widget tree.
-
void HandleEnterRoot()
- Dispatch the enter root event.
-
void HandleExitRoot()
- Dispatch the enter root event.
-
void HandleMouseUp(int X, int Y, TMouseButton button)
- Dispatch the mouse up event to the widget tree
-
void HandleKeyDown(const TKey& key)
- Dispatch the key down event to the widget tree
-
void HandleKeyUp(const TKey& key)
- Dispatch the key up event to the widget tree
-
void HandleJoyAxisMove(Uint8 joy, Uint8 axis, Sint16 value)
- Dispatch the joy axis move event to the widget tree
-
void HandleJoyBallMove(Uint8 joy, Uint8 axis, Sint16 X, Sint16 Y)
- Dispatch the joy ball move event to the widget tree
-
void HandleJoyHatMove(Uint8 joy, Uint8 hat, TJoyHatPosition pos)
- Dispatch the joy hat move event to the widget tree
-
void HandleJoyDown(Uint8 joy, Uint8 button)
- Dispatch the joy down event to the widget tree
-
void HandleJoyUp(Uint8 joy, Uint8 button)
- Dispatch the joy up event to the widget tree
-
virtual void PollEvents() = 0
- Override to provide the actual event polling and dispatching code based on the underlying event backend
Protected Methods
-
virtual void DoSetJoystickAxisRepeat(bool enable) = 0
- Override to do system specific set-up for joystick axis repeat
-
virtual void DoSetJoystickEvents(bool enable) = 0
- Override to do system specific set-up for joystick events
-
virtual void DoSetJoystickCursor(bool enable) = 0
- Override to do system specific set-up for joystick cursor
-
virtual void DoSetJoystickCursorSensitivity(unsigned int) = 0
- Override to do system specific set-up for joystick cursor sensitivity
-
virtual void DoSetJoystickCursorNum(unsigned int) = 0
- Override to do system specific set-up for joystick cursor number
Documentation
Passes events down the widget tree. Override this class to provide a
new event backend.
- TEventDispatcher(TWidgetTree* _tree)
- Contruct an event dispatcher that uses the given widget tree
- TWidgetTree* GetWidgetTree()
- Returns the widget tree that this object dispatches to
- bool GetJoystickAxisRepeat() const
- Returns true if joystick axis repeat is enabled
- bool GetJoystickEvents() const
- Returns true if joystick events are enabled
- bool GetJoystickCursor() const
- Returns true if joystick cursor is enabled
- unsigned int GetJoystickCursorSensitivity() const
- Returns the joystick cursor sensitivity
- unsigned int GetJoystickCursorNum() const
- Returns the joystick number that controls the cursor
- TWidget* GetKeyboardFocus()
- Returns the widget receiving keyboard focus
- TWidget* GetMouseFocus()
- Returns the widget receiving mouse input
- TWidget* GetJoystickFocus()
- Returns the widget receiving joystick input
- void SetJoystickAxisRepeat(bool enable)
- Enables/disables joystick axis repeat. This causes all axis events to
be repeated until they no longer occur.
- void SetJoystickEvents(bool enable)
- Enables/disables joystick events. When disabled the application will not
receive any joystick events.
- void SetJoystickCursor(bool enable)
- Enables/disables the joystick cursor. This causes a particular joystick
to control the cursor. (Note: As of libksd 0.0.4 this is not implemented.)
- void SetJoystickCursorSensitvity(unsigned int _s)
- Sets the joystick cursor sensitivity
- void SetJoystickCursorNum(unsigned int _joy)
- Sets which joystick controls the cursor
- void SetKeyboardFocus(TWidget* w)
- Sets the widget to recieve keyboard input
- void SetJoystickFocus(TWidget* w)
- Sets the widget to receive joystick input
- void HandleMouseDown(int X, int Y, TMouseButton button)
- Dispatch the mouse down event to the widget tree. The clicked widget
receives the mouse focus.
- void HandleMouseMove(int X, int Y, int RelX, int RelY, TMouseButton button)
- Dispatch the mouse move event to the widget tree. This will also deal
with calling the OnEnter and OnExit handlers when appropriate.
- void HandleEnterRoot()
- Dispatch the enter root event. This event occurs when the mouse enters
the root widget (usually the window in which libksd resides, but this
depends on the backend).
- void HandleExitRoot()
- Dispatch the enter root event. This event occurs when the mouse exits
the root widget (usually the window in which libksd resides, but this
depends on the backend).
- void HandleMouseUp(int X, int Y, TMouseButton button)
- Dispatch the mouse up event to the widget tree
- void HandleKeyDown(const TKey& key)
- Dispatch the key down event to the widget tree
- void HandleKeyUp(const TKey& key)
- Dispatch the key up event to the widget tree
- void HandleJoyAxisMove(Uint8 joy, Uint8 axis, Sint16 value)
- Dispatch the joy axis move event to the widget tree
- void HandleJoyBallMove(Uint8 joy, Uint8 axis, Sint16 X, Sint16 Y)
- Dispatch the joy ball move event to the widget tree
- void HandleJoyHatMove(Uint8 joy, Uint8 hat, TJoyHatPosition pos)
- Dispatch the joy hat move event to the widget tree
- void HandleJoyDown(Uint8 joy, Uint8 button)
- Dispatch the joy down event to the widget tree
- void HandleJoyUp(Uint8 joy, Uint8 button)
- Dispatch the joy up event to the widget tree
- virtual void PollEvents() = 0
- Override to provide the actual event polling and dispatching code based
on the underlying event backend
- virtual void DoSetJoystickAxisRepeat(bool enable) = 0
- Override to do system specific set-up for joystick axis repeat
- virtual void DoSetJoystickEvents(bool enable) = 0
- Override to do system specific set-up for joystick events
- virtual void DoSetJoystickCursor(bool enable) = 0
- Override to do system specific set-up for joystick cursor
- virtual void DoSetJoystickCursorSensitivity(unsigned int) = 0
- Override to do system specific set-up for joystick cursor sensitivity
- virtual void DoSetJoystickCursorNum(unsigned int) = 0
- Override to do system specific set-up for joystick cursor number
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.