#include <inputhandler.h>
Inheritance diagram for InputHandler:
Collaboration diagram for InputHandler:Public Member Functions | |
| InputHandler () | |
| virtual | ~InputHandler ()=default |
| virtual bool | isRandom () const |
| virtual bool | isKeyDown (GameKeyType k)=0 |
| virtual bool | wasKeyDown (GameKeyType k)=0 |
| virtual bool | wasKeyPressed (GameKeyType k)=0 |
| virtual bool | wasKeyReleased (GameKeyType k)=0 |
| virtual bool | cancelPressed ()=0 |
| virtual float | getJoystickSpeed ()=0 |
| virtual float | getJoystickDirection ()=0 |
| virtual void | clearWasKeyPressed () |
| virtual void | clearWasKeyReleased () |
| virtual void | listenForKey (const KeyPress &keyCode) |
| virtual void | dontListenForKeys () |
| virtual v2s32 | getMousePos ()=0 |
| virtual void | setMousePos (s32 x, s32 y)=0 |
| virtual s32 | getMouseWheel ()=0 |
| virtual void | step (float dtime) |
| virtual void | clear () |
| virtual void | releaseAllKeys () |
Public Attributes | |
| JoystickController | joystick |
| KeyCache | keycache |
|
inline |
References KeyCache::handler, keycache, and KeyCache::populate().
Here is the call graph for this function:
|
virtualdefault |
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::connectToServer(), Game::createSingleplayerServer(), Game::getServerContent(), and Game::processKeyInput().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in RealInputHandler.
Referenced by Game::connectToServer(), Game::createSingleplayerServer(), Game::getServerContent(), and Game::processUserInput().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in RealInputHandler.
Referenced by Game::processPlayerInteraction().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in RealInputHandler.
Referenced by Game::processPlayerInteraction().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in RealInputHandler.
Referenced by KeyCache::populate().
Here is the caller graph for this function:
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::updatePlayerControl().
Here is the caller graph for this function:
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::updatePlayerControl().
Here is the caller graph for this function:
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::updateCameraOrientation().
Here is the caller graph for this function:
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::processItemSelection().
Here is the caller graph for this function:
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::isKeyDown().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in RandomInputHandler.
Referenced by Game::nodePlacement(), and Game::updateCameraDirection().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in RealInputHandler.
Referenced by KeyCache::populate().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in RealInputHandler.
Referenced by Game::processUserInput().
Here is the caller graph for this function:
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::updateCameraDirection(), and Game::updateCameraOrientation().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in RandomInputHandler.
Referenced by Game::processUserInput().
Here is the caller graph for this function:
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::wasKeyDown().
Here is the caller graph for this function:
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::wasKeyPressed().
Here is the caller graph for this function:
|
pure virtual |
Implemented in RandomInputHandler, and RealInputHandler.
Referenced by Game::wasKeyReleased().
Here is the caller graph for this function:| JoystickController InputHandler::joystick |
Referenced by RealInputHandler::RealInputHandler(), RealInputHandler::clear(), RealInputHandler::getJoystickDirection(), RealInputHandler::getJoystickSpeed(), ClientLauncher::init_joysticks(), RealInputHandler::isKeyDown(), ClientLauncher::main_menu(), Game::processPlayerInteraction(), RealInputHandler::releaseAllKeys(), GameFormSpec::showCSMFormSpec(), GameFormSpec::showDeathFormspecLegacy(), GameFormSpec::showFormSpec(), GameFormSpec::showNodeFormspec(), GameFormSpec::showPauseMenu(), GameFormSpec::showPauseMenuFormSpec(), GameFormSpec::showPlayerInventory(), Game::updateCameraOrientation(), RealInputHandler::wasKeyDown(), RealInputHandler::wasKeyPressed(), and RealInputHandler::wasKeyReleased().
| KeyCache InputHandler::keycache |