Unravel Engine C++ Reference
Loading...
Searching...
No Matches
input_type.hpp
Go to the documentation of this file.
1#pragma once
2#include <cmath>
3
4namespace input
5{
6enum class input_type
7{
8 axis,
9 button,
10 key,
11};
12
13inline auto epsilon_not_equal(float x, float y) -> bool
14{
15 constexpr float epsilon = 0.0001f;
16 return std::abs(x - y) >= epsilon;
17}
18}
auto epsilon_not_equal(float x, float y) -> bool