summaryrefslogtreecommitdiffhomepage
path: root/proto-fsuipc/ftnoir_protocol_fsuipc.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-08 12:55:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-09 10:49:54 +0200
commit01631d777fba7662a7f28d8a0c9a03136d982095 (patch)
tree4cb43b2650edc92f76f08df6aedf11d42159d207 /proto-fsuipc/ftnoir_protocol_fsuipc.h
parentbfb0b9c197a15aa7e9826e6c2835948e8029dd81 (diff)
proto/fsuipc: fix float <-> double promote
Diffstat (limited to 'proto-fsuipc/ftnoir_protocol_fsuipc.h')
-rw-r--r--proto-fsuipc/ftnoir_protocol_fsuipc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/proto-fsuipc/ftnoir_protocol_fsuipc.h b/proto-fsuipc/ftnoir_protocol_fsuipc.h
index af59e988..42f421ad 100644
--- a/proto-fsuipc/ftnoir_protocol_fsuipc.h
+++ b/proto-fsuipc/ftnoir_protocol_fsuipc.h
@@ -52,14 +52,17 @@ public:
~FTNoIR_Protocol() override;
bool correct();
void pose(const double* headpose);
- QString game_name() {
+ QString game_name()
+ {
return "Microsoft Flight Simulator X";
}
private:
QLibrary FSUIPCLib;
double prevPosX, prevPosY, prevPosZ, prevRotX, prevRotY, prevRotZ;
- static int scale2AnalogLimits( float x, float min_x, float max_x );
settings s;
+
+ template<typename t>
+ static int scale2AnalogLimits(t x, t min_x, t max_x );
};
class FSUIPCControls: public IProtocolDialog