1 #ifndef MWINPUT_MWINPUTMANAGERIMP_H
2 #define MWINPUT_MWINPUTMANAGERIMP_H
4 #include "../mwgui/mode.hpp"
8 #include <extern/oics/ICSChannelListener.h>
9 #include <extern/oics/ICSInputControlSystem.h>
15 #include "../mwbase/inputmanager.hpp"
30 class InputControlSystem;
40 struct ConfigurationManager;
52 class ScreenCaptureHandler;
69 public ICS::ChannelListener,
70 public ICS::DetectingBindingListener
75 osg::ref_ptr<osgViewer::Viewer> viewer,
76 osg::ref_ptr<osgViewer::ScreenCaptureHandler> screenCaptureHandler,
77 const std::string& userFile,
bool userFileExists,
78 const std::string& controllerBindingsFile,
bool grab);
87 virtual void update(
float dt,
bool disableControls=
false,
bool disableEvents=
false);
113 virtual void keyPressed(
const SDL_KeyboardEvent &arg );
114 virtual void keyReleased(
const SDL_KeyboardEvent &arg );
115 virtual void textInput (
const SDL_TextInputEvent &arg);
117 virtual void mousePressed(
const SDL_MouseButtonEvent &arg, Uint8
id );
118 virtual void mouseReleased(
const SDL_MouseButtonEvent &arg, Uint8
id );
121 virtual void buttonPressed(
int deviceID,
const SDL_ControllerButtonEvent &arg);
122 virtual void buttonReleased(
int deviceID,
const SDL_ControllerButtonEvent &arg);
123 virtual void axisMoved(
int deviceID,
const SDL_ControllerAxisEvent &arg);
124 virtual void controllerAdded(
int deviceID,
const SDL_ControllerDeviceEvent &arg);
132 virtual void channelChanged(ICS::Channel* channel,
float currentValue,
float previousValue);
135 , ICS::InputControlSystem::NamedAxis axis, ICS::Control::ControlChangingDirection direction);
138 , SDL_Scancode key, ICS::Control::ControlChangingDirection direction);
141 ,
unsigned int button, ICS::Control::ControlChangingDirection direction);
144 ,
int axis, ICS::Control::ControlChangingDirection direction);
147 ,
unsigned int button, ICS::Control::ControlChangingDirection direction);
Definition: sdlvideowrapper.hpp:18
Definition: esmreader.hpp:21
NPC object representing the player and additional player data.
Definition: player.hpp:30
Definition: events.hpp:65
Definition: events.hpp:15
Definition: loadinglistener.hpp:8
std::set< std::pair< std::string, std::string > > CategorySettingVector
Definition: settings.hpp:11
Definition: esmwriter.hpp:17
Definition: events.hpp:26
Definition: events.hpp:44
Definition: events.hpp:35