diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-16 02:58:43 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-16 06:45:48 +0100 |
commit | 9282f42525ffabe812fae2d614050bf91b610df9 (patch) | |
tree | 7a402eab9dde649c6137bccb5c5901c8fe4f5c9b /logic/mappings.hpp | |
parent | 4701f4748f0484e7dd75a6883bb7651697cc1e71 (diff) |
logic/mappings: fix silly ctor
Diffstat (limited to 'logic/mappings.hpp')
-rw-r--r-- | logic/mappings.hpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/logic/mappings.hpp b/logic/mappings.hpp index 7bb5f9af..d08ae29c 100644 --- a/logic/mappings.hpp +++ b/logic/mappings.hpp @@ -29,17 +29,7 @@ class OTR_LOGIC_EXPORT Mappings final private: Map axes[6]; public: - template<typename t> - Mappings(t& opts) : - axes { - { "spline-X", "alt-spline-X", *opts[TX] }, - { "spline-Y", "alt-spline-Y", *opts[TY] }, - { "spline-Z", "alt-spline-Z", *opts[TZ] }, - { "spline-yaw", "alt-spline-yaw", *opts[Yaw] }, - { "spline-pitch", "alt-spline-pitch", *opts[Pitch] }, - { "spline-roll", "alt-spline-roll", *opts[Roll] } - } - {} + Mappings(axis_opts** opts); Map& operator()(int i) { return axes[i]; } const Map& operator()(int i) const { return axes[i]; } |