Mock object that receives and stores key presses, mainly for testing purposes.
#include <MockInputEventListener.hpp>
|
| virtual bool | onKeyDown (const Key &k) |
| | This function will be called whenever a key is pressed on the keyboard. More...
|
| |
| virtual bool | onKeyUp (const Key &k) |
| | This function will be called whenever a key is released on the keyboard. More...
|
| |
| virtual bool | onWindowEvent (const WindowEvent &event) |
| | This function will be called whenever a window event is raised. More...
|
| |
|
int | getNumKeyDownPresses () const |
| |
|
int | getNumKeyUpPresses () const |
| |
|
int | getNumWindowEvents () const |
| |
|
bool | clear () |
| |
|
const std::vector< Key > & | getStoredKeyUpPresses () const |
| |
|
const std::vector< Key > & | getStoredKeyDownPresses () const |
| |
|
const std::vector< WindowEvent > & | getStoredWindowEvents () const |
| |
|
|
int | num_keydown_presses |
| |
|
std::vector< Key > | stored_keydown_presses |
| |
|
int | num_keyup_presses |
| |
|
std::vector< Key > | stored_keyup_presses |
| |
|
int | num_window_events |
| |
|
std::vector< WindowEvent > | stored_window_events |
| |
◆ onKeyDown()
| bool rd::MockInputEventListener::onKeyDown |
( |
const Key & |
k | ) |
|
|
virtual |
◆ onKeyUp()
| bool rd::MockInputEventListener::onKeyUp |
( |
const Key & |
k | ) |
|
|
virtual |
◆ onWindowEvent()
| bool rd::MockInputEventListener::onWindowEvent |
( |
const WindowEvent & |
event | ) |
|
|
virtual |
The documentation for this class was generated from the following files: