#include <hps.h>
The InputEvent class is the base class for input events such as MouseEvent, TouchEvent, and KeyboardEvent. It contains functionality which is common to all input event types, namely the state of modifier keys.
◆ InputEvent() [1/2]
HPS::InputEvent::InputEvent |
( |
| ) |
|
|
inline |
This constructor creates a default InputEvent object.
◆ InputEvent() [2/2]
HPS::InputEvent::InputEvent |
( |
ModifierKeys const & |
in_modifiers | ) |
|
|
inline |
This constructor creates a new InputEvent with the specified modifier keys initialized.
- Parameters
-
in_modifiers | The modifier keys associated with the new Event. |
◆ Clone()
Event* HPS::InputEvent::Clone |
( |
| ) |
const |
|
inlinevirtual |
◆ Equals()
virtual bool HPS::InputEvent::Equals |
( |
InputEvent const & |
in_that | ) |
const |
|
inlinevirtual |
Check if the source object is equivalent to this object.
- Parameters
-
in_kit | The source object to compare to this object. |
- Returns
- true if the objects are equivalent, false otherwise.
Reimplemented in HPS::KeyboardEvent, HPS::MouseEvent, and HPS::TouchEvent.
◆ GetModifierKeys()
Queries which modifier keys are active
- Returns
- A ModifierKeys object, which represents which modifier keys are active
◆ operator!=()
virtual bool HPS::InputEvent::operator!= |
( |
InputEvent const & |
in_that | ) |
const |
|
inlinevirtual |
Check if the source object is not equivalent to this object.
- Parameters
-
in_that | The source object to compare to this object. |
- Returns
- true if the objects are not equivalent, false otherwise.
◆ operator==()
virtual bool HPS::InputEvent::operator== |
( |
InputEvent const & |
in_that | ) |
const |
|
inlinevirtual |
Check if the source object is equivalent to this object.
- Parameters
-
in_that | The source object to compare to this object. |
- Returns
- true if the objects are equivalent, false otherwise.
The documentation for this class was generated from the following file: