Overte C++ Documentation
StandardController.h
1 //
2 // StandardController.h
3 // input-plugins/src/input-plugins
4 //
5 // Created by Brad Hefta-Gaub on 2015-10-11.
6 // Copyright 2015 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_StandardController_h
13 #define hifi_StandardController_h
14 
15 #include <QtCore/QObject>
16 #include <QtCore/QVector>
17 
18 #include "InputDevice.h"
19 #include "StandardControls.h"
20 
21 namespace controller {
22 
23 class StandardController : public QObject, public InputDevice {
24  Q_OBJECT
25  Q_PROPERTY(QString name READ getName)
26 
27 public:
28  virtual EndpointPointer createEndpoint(const Input& input) const override;
29  virtual Input::NamedVector getAvailableInputs() const override;
30  virtual QStringList getDefaultMappingConfigs() const override;
31  virtual void focusOutEvent() override;
32 
33  StandardController();
34 };
35 
36 }
37 
38 #endif // hifi_StandardController_h