 |
Blamite Game Engine - blam!
00388.06.24.23.2301.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #ifndef _Demo_SdlInputHandler_H_
6 #define _Demo_SdlInputHandler_H_
9 #include "OGRE/OgrePrerequisites.h"
19 class KeyboardListener;
20 class JoystickListener;
24 SDL_Window *mSdlWindow;
26 BaseSystem *mGraphicsSystem;
27 BaseSystem *mLogicSystem;
28 MouseListener *mMouseListener;
29 KeyboardListener *mKeyboardListener;
30 JoystickListener *mJoystickListener;
41 bool mWantMouseVisible;
44 bool mIsMouseRelative;
46 bool mWrapPointerManually;
55 void updateMouseSettings(
void);
57 void handleWindowEvent(
const SDL_Event& evt );
60 void warpMouse(
int x,
int y);
70 SdlInputHandler( SDL_Window *sdlWindow,
71 MouseListener *mouseListener,
72 KeyboardListener *keyboardListener,
73 JoystickListener *joystickListener );
74 virtual ~SdlInputHandler();
76 void _handleSdlEvents(
const SDL_Event& evt );
79 void setGrabMousePointer(
bool grab );
87 void setMouseRelative(
bool relative );
90 void setMouseVisible(
bool visible );
92 void _overrideKeyboardListener( KeyboardListener *listener );
93 void _overrideMouseListener( MouseListener *listener );
94 KeyboardListener *getKeyboardListener(
void );
95 MouseListener *getMouseListener(
void );
Mouse motion event structure (event.motion.
Definition: SdlEmulationLayer.h:691
@ SDL_EVENT
Definition: MqMessages.h:21
SDL_MouseMotionEvent motion
Mouse motion event data.
Definition: SdlEmulationLayer.h:739
SDL_MouseButtonEvent button
Mouse button event data.
Definition: SdlEmulationLayer.h:740
int width
Definition: bgfx.cpp:19
Definition: BaseSystem.cpp:5
font DisplayOffset y
Definition: README.txt:68
SDL_KeyboardEvent key
Keyboard event data.
Definition: SdlEmulationLayer.h:738
int height
Definition: bgfx.cpp:20
Ogre::int32 y
Y coordinate, relative to window.
Definition: SdlEmulationLayer.h:699
Ogre::uint32 type
Event type, shared with all events.
Definition: SdlEmulationLayer.h:737
Ogre::int32 x
X coordinate, relative to window.
Definition: SdlEmulationLayer.h:698
config GlyphExtraSpacing x
Definition: README.txt:30
Definition: SdlEmulationLayer.h:735
Ogre::uint8 repeat
Non-zero if this is a key repeat.
Definition: SdlEmulationLayer.h:682