mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Move all OICS handling to the separate file
This commit is contained in:
parent
0eb24da2e7
commit
b33c4c920c
21 changed files with 1121 additions and 1113 deletions
|
@ -8,7 +8,6 @@
|
|||
#include <SDL_events.h>
|
||||
#include <SDL_version.h>
|
||||
|
||||
#include "OISCompat.hpp"
|
||||
#include "events.hpp"
|
||||
|
||||
namespace osgViewer
|
||||
|
@ -40,8 +39,6 @@ namespace SDLUtil
|
|||
bool getMouseRelative() { return mMouseRelative; }
|
||||
void setGrabPointer(bool grab);
|
||||
|
||||
OIS::KeyCode sdl2OISKeyCode(SDL_Keycode code);
|
||||
|
||||
void warpMouse(int x, int y);
|
||||
|
||||
void updateMouseSettings();
|
||||
|
@ -53,8 +50,6 @@ namespace SDLUtil
|
|||
void _wrapMousePointer(const SDL_MouseMotionEvent &evt);
|
||||
MouseMotionEvent _packageMouseMotion(const SDL_Event& evt);
|
||||
|
||||
void _setupOISKeys();
|
||||
|
||||
SDL_Window* mSDLWindow;
|
||||
osg::ref_ptr<osgViewer::Viewer> mViewer;
|
||||
|
||||
|
@ -64,9 +59,6 @@ namespace SDLUtil
|
|||
WindowListener* mWindowListener;
|
||||
ControllerListener* mConListener;
|
||||
|
||||
typedef std::map<SDL_Keycode, OIS::KeyCode> KeyMap;
|
||||
KeyMap mKeyMap;
|
||||
|
||||
Uint16 mWarpX;
|
||||
Uint16 mWarpY;
|
||||
bool mWarpCompensate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue