AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
SensorManager.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16#ifndef AGXSENSOR_SENSORMANAGER
17#define AGXSENSOR_SENSORMANAGER
18
19#include <agxSensor/export.h>
20#include <agx/Singleton.h>
21
23namespace OIS
24{
25 class InputManager;
26}
28
29namespace agxSensor
30{
31
34 {
35 public:
36 SINGLETON_CLASSNAME_METHOD();
37
39 virtual void shutdown() override;
40
46 bool init( agx::Int mWin );
47
51 OIS::InputManager* getInputManager();
52
55
56 static bool hasShutdown();
57
58 protected:
59 virtual ~SensorManager();
60
61 private:
62 OIS::InputManager* m_InputManager;
63 static SensorManager* s_ois;
64 static bool s_hasShutdown;
65 };
66}
67
68#endif
#define AGXSENSOR_EXPORT
Class which controls all sensors, initialization, destruction etc.
OIS::InputManager * getInputManager()
virtual void shutdown() override
Implement this method to cleanup your Singleton class.
static SensorManager * instance()
bool init(agx::Int mWin)
Initializes the SensorManager with a valid window pointer.
static bool hasShutdown()
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
Definition Singleton.h:31
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition macros.h:96
The agxSensor namespace contains drivers for reading for devices such as Gamepad.
int64_t Int
Definition Integer.h:28