Overte C++ Documentation
DeviceProxy.h
1 //
2 // Created by Bradley Austin Davis on 2015/10/18
3 // (based on UserInputMapper inner class created by Sam Gateau on 4/27/15)
4 // Copyright 2015 High Fidelity, Inc.
5 //
6 // Distributed under the Apache License, Version 2.0.
7 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
8 //
9 
10 #pragma once
11 #ifndef hifi_controllers_DeviceProxy_h
12 #define hifi_controllers_DeviceProxy_h
13 
14 #include <functional>
15 
16 #include <QtCore/QString>
17 #include <QtCore/QVector>
18 
19 #include "Input.h"
20 #include "Pose.h"
21 
22 namespace controller {
23  /*
24  using Modifiers = std::vector<Input>;
25  typedef QPair<Input, QString> InputPair;
26  class Endpoint;
27  using EndpointPtr = std::shared_ptr<Endpoint>;
28 
29  template<typename T>
30  using InputGetter = std::function<T(const Input& input, int timestamp)>;
31  using ButtonGetter = InputGetter<bool>;
32  using AxisGetter = InputGetter<float>;
33  using PoseGetter = InputGetter<Pose>;
34  using ResetBindings = std::function<bool()>;
35  using AvailableInputGetter = std::function<Input::NamedVector()>;
36  using EndpointCreator = std::function<EndpointPtr(const Input&)>;
37 
38  class DeviceProxy {
39  public:
40  using Pointer = std::shared_ptr<DeviceProxy>;
41 
42  QString _name;
43  };
44  */
45 }
46 
47 #endif