|
|
@ -4,6 +4,7 @@
|
|
|
|
#include "../mwgui/mode.hpp"
|
|
|
|
#include "../mwgui/mode.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/settings/settings.hpp>
|
|
|
|
#include <components/settings/settings.hpp>
|
|
|
|
|
|
|
|
#include <components/files/configurationmanager.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include "../mwbase/inputmanager.hpp"
|
|
|
|
#include "../mwbase/inputmanager.hpp"
|
|
|
|
#include <extern/sdl4ogre/sdlinputwrapper.hpp>
|
|
|
|
#include <extern/sdl4ogre/sdlinputwrapper.hpp>
|
|
|
@ -41,6 +42,11 @@ namespace MyGUI
|
|
|
|
class MouseButton;
|
|
|
|
class MouseButton;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Files
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
struct ConfigurationManager;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#include <extern/oics/ICSChannelListener.h>
|
|
|
|
#include <extern/oics/ICSChannelListener.h>
|
|
|
|
#include <extern/oics/ICSInputControlSystem.h>
|
|
|
|
#include <extern/oics/ICSInputControlSystem.h>
|
|
|
|
|
|
|
|
|
|
|
@ -85,8 +91,6 @@ namespace MWInput
|
|
|
|
virtual std::string getActionDescription (int action);
|
|
|
|
virtual std::string getActionDescription (int action);
|
|
|
|
virtual std::string getActionKeyBindingName (int action);
|
|
|
|
virtual std::string getActionKeyBindingName (int action);
|
|
|
|
virtual std::string getActionControllerBindingName (int action);
|
|
|
|
virtual std::string getActionControllerBindingName (int action);
|
|
|
|
virtual std::string sdlControllerAxisToString(int axis);
|
|
|
|
|
|
|
|
virtual std::string sdlControllerButtonToString(int button);
|
|
|
|
|
|
|
|
virtual int getNumActions() { return A_Last; }
|
|
|
|
virtual int getNumActions() { return A_Last; }
|
|
|
|
virtual std::vector<int> getActionKeySorting();
|
|
|
|
virtual std::vector<int> getActionKeySorting();
|
|
|
|
virtual std::vector<int> getActionControllerSorting();
|
|
|
|
virtual std::vector<int> getActionControllerSorting();
|
|
|
@ -94,6 +98,8 @@ namespace MWInput
|
|
|
|
virtual void resetToDefaultKeyBindings();
|
|
|
|
virtual void resetToDefaultKeyBindings();
|
|
|
|
virtual void resetToDefaultControllerBindings();
|
|
|
|
virtual void resetToDefaultControllerBindings();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual bool joystickLastUsed() {return mJoystickLastUsed;}
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
virtual void keyPressed(const SDL_KeyboardEvent &arg );
|
|
|
|
virtual void keyPressed(const SDL_KeyboardEvent &arg );
|
|
|
|
virtual void keyReleased( const SDL_KeyboardEvent &arg );
|
|
|
|
virtual void keyReleased( const SDL_KeyboardEvent &arg );
|
|
|
@ -181,6 +187,9 @@ namespace MWInput
|
|
|
|
void adjustMouseRegion(int width, int height);
|
|
|
|
void adjustMouseRegion(int width, int height);
|
|
|
|
MyGUI::MouseButton sdlButtonToMyGUI(Uint8 button);
|
|
|
|
MyGUI::MouseButton sdlButtonToMyGUI(Uint8 button);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual std::string sdlControllerAxisToString(int axis);
|
|
|
|
|
|
|
|
virtual std::string sdlControllerButtonToString(int button);
|
|
|
|
|
|
|
|
|
|
|
|
void resetIdleTime();
|
|
|
|
void resetIdleTime();
|
|
|
|
void updateIdleTime(float dt);
|
|
|
|
void updateIdleTime(float dt);
|
|
|
|
|
|
|
|
|
|
|
@ -201,8 +210,6 @@ namespace MWInput
|
|
|
|
void quickLoad();
|
|
|
|
void quickLoad();
|
|
|
|
void quickSave();
|
|
|
|
void quickSave();
|
|
|
|
|
|
|
|
|
|
|
|
bool isAReverse(int action);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void quickKey (int index);
|
|
|
|
void quickKey (int index);
|
|
|
|
void showQuickKeysMenu();
|
|
|
|
void showQuickKeysMenu();
|
|
|
|
|
|
|
|
|
|
|
|