![]() |
LLGL 0.05 Beta
|
Default window event listener to receive user input. More...
#include <Input.h>
Public Member Functions | |
| Input () | |
| Default initializes the input handler without assigning to any surface. | |
| Input (Surface &surface) | |
| Assigns an event listener for this input handler to the specified surface. | |
| ~Input () | |
| Releases the internal data. | |
| void | Reset () |
| Resets the internal state. remarks This should be called once before Surface::ProcessEvents is invoked. | |
| void | Listen (Surface &surface) |
| Adds an event listener for this input handler to the specified surface. | |
| void | Drop (Surface &surface) |
| Removes the event listener for this input handler from the specified surface. | |
| bool | KeyPressed (Key keyCode) const |
| Returns true if the specified key is currently being pressed down. | |
| bool | KeyDown (Key keyCode) const |
| Returns true if the specified key was pressed down in the previous event processing. | |
| bool | KeyDownRepeated (Key keyCode) const |
| Returns true if the specified key was pressed down in the previous event processing (this event will be repeated, depending on the platform settings). | |
| bool | KeyUp (Key keyCode) const |
| Returns true if the specified key was released in the previous event processing. | |
| bool | KeyDoubleClick (Key keyCode) const |
| Returns true if the specified key was double clicked. | |
| Offset2D | GetMousePosition () const |
| Returns the local mouse position. | |
| Offset2D | GetMouseMotion () const |
| Returns the global mouse motion. | |
| int | GetWheelMotion () const |
| Returns the mouse wheel motion. | |
| const UTF8String & | GetEnteredChars () const |
| Returns the entered characters. | |
| unsigned | GetAnyKeyCount () const |
| Returns the number of any keys being pressed. | |
| Public Member Functions inherited from LLGL::Interface | |
| virtual bool | IsInstanceOf (int id) const |
| Returns true if this object is an instance of the specified interface. | |
| Public Member Functions inherited from LLGL::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
| virtual | ~NonCopyable ()=default |
Additional Inherited Members | |
| Protected Member Functions inherited from LLGL::NonCopyable | |
| NonCopyable ()=default | |
Default window event listener to receive user input.
| LLGL::Input::Input | ( | ) |
Default initializes the input handler without assigning to any surface.
| LLGL::Input::Input | ( | Surface & | surface | ) |
Assigns an event listener for this input handler to the specified surface.
| LLGL::Input::~Input | ( | ) |
Releases the internal data.
| void LLGL::Input::Drop | ( | Surface & | surface | ) |
Removes the event listener for this input handler from the specified surface.
| unsigned LLGL::Input::GetAnyKeyCount | ( | ) | const |
Returns the number of any keys being pressed.
| const UTF8String & LLGL::Input::GetEnteredChars | ( | ) | const |
Returns the entered characters.
| Offset2D LLGL::Input::GetMouseMotion | ( | ) | const |
Returns the global mouse motion.
| Offset2D LLGL::Input::GetMousePosition | ( | ) | const |
Returns the local mouse position.
| int LLGL::Input::GetWheelMotion | ( | ) | const |
Returns the mouse wheel motion.
| bool LLGL::Input::KeyDoubleClick | ( | Key | keyCode | ) | const |
Returns true if the specified key was double clicked.
| bool LLGL::Input::KeyDown | ( | Key | keyCode | ) | const |
Returns true if the specified key was pressed down in the previous event processing.
| bool LLGL::Input::KeyDownRepeated | ( | Key | keyCode | ) | const |
Returns true if the specified key was pressed down in the previous event processing (this event will be repeated, depending on the platform settings).
| bool LLGL::Input::KeyPressed | ( | Key | keyCode | ) | const |
Returns true if the specified key is currently being pressed down.
| bool LLGL::Input::KeyUp | ( | Key | keyCode | ) | const |
Returns true if the specified key was released in the previous event processing.
| void LLGL::Input::Listen | ( | Surface & | surface | ) |
Adds an event listener for this input handler to the specified surface.
| void LLGL::Input::Reset | ( | ) |
Resets the internal state. remarks This should be called once before Surface::ProcessEvents is invoked.