OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
MWBase::InputManager Class Referenceabstract

Interface for input manager (implemented in MWInput) More...

#include <inputmanager.hpp>

Inheritance diagram for MWBase::InputManager:
Collaboration diagram for MWBase::InputManager:

Public Member Functions

 InputManager ()
 
virtual void clear ()=0
 Clear all savegame-specific data. More...
 
virtual ~InputManager ()
 
virtual bool isWindowVisible ()=0
 
virtual void update (float dt, bool disableControls, bool disableEvents=false)=0
 
virtual void changeInputMode (bool guiMode)=0
 
virtual void processChangedSettings (const std::set< std::pair< std::string, std::string > > &changed)=0
 
virtual void setDragDrop (bool dragDrop)=0
 
virtual void toggleControlSwitch (const std::string &sw, bool value)=0
 
virtual bool getControlSwitch (const std::string &sw)=0
 
virtual std::string getActionDescription (int action)=0
 
virtual std::string getActionKeyBindingName (int action)=0
 
virtual std::string getActionControllerBindingName (int action)=0
 
virtual std::string sdlControllerAxisToString (int axis)=0
 
virtual std::string sdlControllerButtonToString (int button)=0
 
virtual std::vector< intgetActionKeySorting ()=0
 Actions available for binding to keyboard buttons. More...
 
virtual std::vector< intgetActionControllerSorting ()=0
 Actions available for binding to controller buttons. More...
 
virtual int getNumActions ()=0
 
virtual void enableDetectingBindingMode (int action, bool keyboard)=0
 If keyboard is true, only pay attention to keyboard events. If false, only pay attention to controller events (excluding esc) More...
 
virtual void resetToDefaultKeyBindings ()=0
 
virtual void resetToDefaultControllerBindings ()=0
 
virtual bool joystickLastUsed ()=0
 
virtual int countSavedGameRecords () const =0
 
virtual void write (ESM::ESMWriter &writer, Loading::Listener &progress)=0
 
virtual void readRecord (ESM::ESMReader &reader, uint32_t type)=0
 

Private Member Functions

 InputManager (const InputManager &)
 not implemented More...
 
InputManageroperator= (const InputManager &)
 not implemented More...
 

Detailed Description

Interface for input manager (implemented in MWInput)

Constructor & Destructor Documentation

MWBase::InputManager::InputManager ( const InputManager )
private

not implemented

MWBase::InputManager::InputManager ( )
inline
virtual MWBase::InputManager::~InputManager ( )
inlinevirtual

Reimplemented in MWInput::InputManager.

Member Function Documentation

virtual void MWBase::InputManager::changeInputMode ( bool  guiMode)
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual void MWBase::InputManager::clear ( )
pure virtual

Clear all savegame-specific data.

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual int MWBase::InputManager::countSavedGameRecords ( ) const
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual void MWBase::InputManager::enableDetectingBindingMode ( int  action,
bool  keyboard 
)
pure virtual

If keyboard is true, only pay attention to keyboard events. If false, only pay attention to controller events (excluding esc)

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual std::string MWBase::InputManager::getActionControllerBindingName ( int  action)
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual std::vector<int> MWBase::InputManager::getActionControllerSorting ( )
pure virtual

Actions available for binding to controller buttons.

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual std::string MWBase::InputManager::getActionDescription ( int  action)
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual std::string MWBase::InputManager::getActionKeyBindingName ( int  action)
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual std::vector<int> MWBase::InputManager::getActionKeySorting ( )
pure virtual

Actions available for binding to keyboard buttons.

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual bool MWBase::InputManager::getControlSwitch ( const std::string &  sw)
pure virtual

Implemented in MWInput::InputManager.

virtual int MWBase::InputManager::getNumActions ( )
pure virtual

Implemented in MWInput::InputManager.

virtual bool MWBase::InputManager::isWindowVisible ( )
pure virtual

Implemented in MWInput::InputManager.

virtual bool MWBase::InputManager::joystickLastUsed ( )
pure virtual

Returns if the last used input device was a joystick or a keyboard

Returns
true if joystick, false otherwise

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

InputManager& MWBase::InputManager::operator= ( const InputManager )
private

not implemented

virtual void MWBase::InputManager::processChangedSettings ( const std::set< std::pair< std::string, std::string > > &  changed)
pure virtual

Here is the caller graph for this function:

virtual void MWBase::InputManager::readRecord ( ESM::ESMReader reader,
uint32_t  type 
)
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual void MWBase::InputManager::resetToDefaultControllerBindings ( )
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual void MWBase::InputManager::resetToDefaultKeyBindings ( )
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual std::string MWBase::InputManager::sdlControllerAxisToString ( int  axis)
pure virtual

Implemented in MWInput::InputManager.

virtual std::string MWBase::InputManager::sdlControllerButtonToString ( int  button)
pure virtual

Implemented in MWInput::InputManager.

virtual void MWBase::InputManager::setDragDrop ( bool  dragDrop)
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual void MWBase::InputManager::toggleControlSwitch ( const std::string &  sw,
bool  value 
)
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual void MWBase::InputManager::update ( float  dt,
bool  disableControls,
bool  disableEvents = false 
)
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:

virtual void MWBase::InputManager::write ( ESM::ESMWriter writer,
Loading::Listener progress 
)
pure virtual

Implemented in MWInput::InputManager.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: