#pragma once #include "options/options.hpp" using namespace options; enum tobii_mode { tobii_snap = 0xf00d, tobii_acc = 0xacc, }; enum max_yaw { y10, y15, y20, y30, y45, }; enum max_pitch { p10, p15, p25, p35, }; struct settings final : public opts { value mode { b, "mode", tobii_snap }; value snap_speed {b, "snap-speed", { .1, .05, 1 }}, snap_inv_dz {b, "snap-screen-edge-length", { .35, .1, .5 }}; value acc_speed {b, "acc-speed", { .1, .05, 1 }}, acc_dz_len {b, "acc-screen-edge-length", { .1, .1, 1 }}; value snap_yaw {b, "snap-max-yaw", y20}, acc_yaw {b, "acc-max-yaw", y20}; value snap_pitch {b, "snap-max-pitch", p15}, acc_pitch {b, "acc-max-pitch", p15}; settings() : opts("tobii-eyex") {} };