|
OpenMW
|
Class that handles all input and key bindings for OpenMW. More...
#include <inputmanagerimp.hpp>
Public Member Functions | |
| InputManager (SDL_Window *window, osg::ref_ptr< osgViewer::Viewer > viewer, osg::ref_ptr< osgViewer::ScreenCaptureHandler > screenCaptureHandler, osgViewer::ScreenCaptureHandler::CaptureOperation *screenCaptureOperation, const std::string &userFile, bool userFileExists, const std::string &controllerBindingsFile, bool grab) | |
| virtual | ~InputManager () |
| virtual bool | isWindowVisible () |
| virtual void | clear () |
| Clear all savegame-specific data. More... | |
| virtual void | update (float dt, bool disableControls=false, bool disableEvents=false) |
| void | setPlayer (MWWorld::Player *player) |
| virtual void | changeInputMode (bool guiMode) |
| virtual void | processChangedSettings (const Settings::CategorySettingVector &changed) |
| virtual void | setDragDrop (bool dragDrop) |
| virtual void | toggleControlSwitch (const std::string &sw, bool value) |
| virtual bool | getControlSwitch (const std::string &sw) |
| virtual std::string | getActionDescription (int action) |
| virtual std::string | getActionKeyBindingName (int action) |
| virtual std::string | getActionControllerBindingName (int action) |
| virtual int | getNumActions () |
| virtual std::vector< int > | getActionKeySorting () |
| Actions available for binding to keyboard buttons. More... | |
| virtual std::vector< int > | getActionControllerSorting () |
| Actions available for binding to controller buttons. More... | |
| virtual void | enableDetectingBindingMode (int action, bool keyboard) |
| If keyboard is true, only pay attention to keyboard events. If false, only pay attention to controller events (excluding esc) More... | |
| virtual void | resetToDefaultKeyBindings () |
| virtual void | resetToDefaultControllerBindings () |
| virtual bool | joystickLastUsed () |
| virtual void | keyPressed (const SDL_KeyboardEvent &arg) |
| virtual void | keyReleased (const SDL_KeyboardEvent &arg) |
| virtual void | textInput (const SDL_TextInputEvent &arg) |
| virtual void | mousePressed (const SDL_MouseButtonEvent &arg, Uint8 id) |
| virtual void | mouseReleased (const SDL_MouseButtonEvent &arg, Uint8 id) |
| virtual void | mouseMoved (const SDLUtil::MouseMotionEvent &arg) |
| virtual void | buttonPressed (int deviceID, const SDL_ControllerButtonEvent &arg) |
| virtual void | buttonReleased (int deviceID, const SDL_ControllerButtonEvent &arg) |
| virtual void | axisMoved (int deviceID, const SDL_ControllerAxisEvent &arg) |
| virtual void | controllerAdded (int deviceID, const SDL_ControllerDeviceEvent &arg) |
| virtual void | controllerRemoved (const SDL_ControllerDeviceEvent &arg) |
| virtual void | windowVisibilityChange (bool visible) |
| virtual void | windowFocusChange (bool have_focus) |
| virtual void | windowResized (int x, int y) |
| virtual void | windowClosed () |
| virtual void | channelChanged (ICS::Channel *channel, float currentValue, float previousValue) |
| virtual void | mouseAxisBindingDetected (ICS::InputControlSystem *ICS, ICS::Control *control, ICS::InputControlSystem::NamedAxis axis, ICS::Control::ControlChangingDirection direction) |
| virtual void | keyBindingDetected (ICS::InputControlSystem *ICS, ICS::Control *control, SDL_Scancode key, ICS::Control::ControlChangingDirection direction) |
| virtual void | mouseButtonBindingDetected (ICS::InputControlSystem *ICS, ICS::Control *control, unsigned int button, ICS::Control::ControlChangingDirection direction) |
| virtual void | joystickAxisBindingDetected (ICS::InputControlSystem *ICS, int deviceID, ICS::Control *control, int axis, ICS::Control::ControlChangingDirection direction) |
| virtual void | joystickButtonBindingDetected (ICS::InputControlSystem *ICS, int deviceID, ICS::Control *control, unsigned int button, ICS::Control::ControlChangingDirection direction) |
| void | clearAllKeyBindings (ICS::Control *control) |
| void | clearAllControllerBindings (ICS::Control *control) |
| virtual int | countSavedGameRecords () const |
| virtual void | write (ESM::ESMWriter &writer, Loading::Listener &progress) |
| virtual void | readRecord (ESM::ESMReader &reader, uint32_t type) |
Public Member Functions inherited from MWBase::InputManager | |
| InputManager () | |
| virtual void | processChangedSettings (const std::set< std::pair< std::string, std::string > > &changed)=0 |
Public Member Functions inherited from SDLUtil::KeyListener | |
| virtual | ~KeyListener () |
Public Member Functions inherited from SDLUtil::MouseListener | |
| virtual | ~MouseListener () |
Public Member Functions inherited from SDLUtil::WindowListener | |
| virtual | ~WindowListener () |
Public Member Functions inherited from SDLUtil::ControllerListener | |
| virtual | ~ControllerListener () |
Private Member Functions | |
| void | convertMousePosForMyGUI (int &x, int &y) |
| MyGUI::MouseButton | sdlButtonToMyGUI (Uint8 button) |
| virtual std::string | sdlControllerAxisToString (int axis) |
| virtual std::string | sdlControllerButtonToString (int button) |
| void | resetIdleTime () |
| void | updateIdleTime (float dt) |
| void | setPlayerControlsEnabled (bool enabled) |
| void | handleGuiArrowKey (int action) |
| void | updateCursorMode () |
| bool | checkAllowedToUseItems () const |
| void | toggleMainMenu () |
| void | toggleSpell () |
| void | toggleWeapon () |
| void | toggleInventory () |
| void | toggleConsole () |
| void | screenshot () |
| void | toggleJournal () |
| void | activate () |
| void | toggleWalking () |
| void | toggleSneaking () |
| void | toggleAutoMove () |
| void | rest () |
| void | quickLoad () |
| void | quickSave () |
| void | quickKey (int index) |
| void | showQuickKeysMenu () |
| bool | actionIsActive (int id) |
| void | loadKeyDefaults (bool force=false) |
| void | loadControllerDefaults (bool force=false) |
Private Attributes | |
| SDL_Window * | mWindow |
| bool | mWindowVisible |
| osg::ref_ptr< osgViewer::Viewer > | mViewer |
| osg::ref_ptr < osgViewer::ScreenCaptureHandler > | mScreenCaptureHandler |
| osgViewer::ScreenCaptureHandler::CaptureOperation * | mScreenCaptureOperation |
| bool | mJoystickLastUsed |
| MWWorld::Player * | mPlayer |
| ICS::InputControlSystem * | mInputBinder |
| SDLUtil::InputWrapper * | mInputManager |
| SDLUtil::VideoWrapper * | mVideoWrapper |
| std::string | mUserFile |
| bool | mDragDrop |
| bool | mGrabCursor |
| bool | mInvertY |
| bool | mControlsDisabled |
| float | mCameraSensitivity |
| float | mCameraYMultiplier |
| float | mPreviewPOVDelay |
| float | mTimeIdle |
| bool | mMouseLookEnabled |
| bool | mGuiCursorEnabled |
| bool | mDetectingKeyboard |
| float | mOverencumberedMessageDelay |
| float | mGuiCursorX |
| float | mGuiCursorY |
| int | mMouseWheel |
| bool | mUserFileExists |
| bool | mAlwaysRunActive |
| bool | mSneakToggles |
| bool | mSneaking |
| bool | mAttemptJump |
| std::map< std::string, bool > | mControlSwitch |
| float | mInvUiScalingFactor |
| int | mFakeDeviceID |
Class that handles all input and key bindings for OpenMW.
|
private |
| MWInput::InputManager::InputManager | ( | SDL_Window * | window, |
| osg::ref_ptr< osgViewer::Viewer > | viewer, | ||
| osg::ref_ptr< osgViewer::ScreenCaptureHandler > | screenCaptureHandler, | ||
| osgViewer::ScreenCaptureHandler::CaptureOperation * | screenCaptureOperation, | ||
| const std::string & | userFile, | ||
| bool | userFileExists, | ||
| const std::string & | controllerBindingsFile, | ||
| bool | grab | ||
| ) |
|
virtual |
Reimplemented from MWBase::InputManager.
|
private |
|
virtual |
Implements SDLUtil::ControllerListener.
|
virtual |
Implements SDLUtil::ControllerListener.
|
virtual |
to escape initial movie
Implements SDLUtil::ControllerListener.
|
virtual |
|
virtual |
|
private |
|
virtual |
Clear all savegame-specific data.
Implements MWBase::InputManager.
| void MWInput::InputManager::clearAllControllerBindings | ( | ICS::Control * | control | ) |
| void MWInput::InputManager::clearAllKeyBindings | ( | ICS::Control * | control | ) |
|
virtual |
Implements SDLUtil::ControllerListener.
|
virtual |
Implements SDLUtil::ControllerListener.
|
virtual |
Implements MWBase::InputManager.
If keyboard is true, only pay attention to keyboard events. If false, only pay attention to controller events (excluding esc)
Implements MWBase::InputManager.
|
virtual |
|
virtual |
Actions available for binding to controller buttons.
Implements MWBase::InputManager.
|
virtual |
Implements MWBase::InputManager.
|
virtual |
Implements MWBase::InputManager.
|
virtual |
Actions available for binding to keyboard buttons.
Implements MWBase::InputManager.
|
virtual |
|
inlinevirtual |
Implements MWBase::InputManager.
|
private |
|
virtual |
Implements MWBase::InputManager.
|
virtual |
|
virtual |
|
inlinevirtual |
Returns if the last used input device was a joystick or a keyboard
Implements MWBase::InputManager.
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
|
virtual |
|
private |
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
|
privatevirtual |
|
privatevirtual |
|
virtual |
Implements MWBase::InputManager.
|
inline |
|
private |
|
private |
|
virtual |
Reimplemented from SDLUtil::KeyListener.
|
private |
|
private |
|
virtual |
maybe crouching at this time
Implements MWBase::InputManager.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
|
virtual |
Reimplemented from SDLUtil::WindowListener.
|
virtual |
Reimplemented from SDLUtil::WindowListener.
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6