From bf922c91147aad940be35378764beffbf93796ab Mon Sep 17 00:00:00 2001 From: Joseph Walton-Rivers <joseph@walton-rivers.uk> Date: Sun, 19 Jun 2022 22:24:29 +0100 Subject: [PATCH] some input types for later --- include/fggl/input/basics.hpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 include/fggl/input/basics.hpp diff --git a/include/fggl/input/basics.hpp b/include/fggl/input/basics.hpp new file mode 100644 index 0000000..78036f6 --- /dev/null +++ b/include/fggl/input/basics.hpp @@ -0,0 +1,33 @@ +/* + * This file is part of FGGL. + * + * FGGL is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any + * later version. + * + * FGGL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License along with FGGL. + * If not, see <https://www.gnu.org/licenses/>. + */ + +// +// Created by webpigeon on 19/06/22. +// + +#ifndef FGGL_INPUT_BASICS_H +#define FGGL_INPUT_BASICS_H + +namespace fggl::input { + + enum class InputType { + BUTTON, // 0 || 1 + UNIDIRECTIONAL_AXIS, // [0,1], absolute + BIDIRECTIONAL_AXIS, // [-1, 1], absolute + RELATIVE_AXIS // [-1, 1], relative + }; + +} // namespace fggl::input + +#endif //FGGL_INPUT_BASICS_H -- GitLab