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
4
namespace
input
5
{
6
enum class
input_type
7
{
8
axis
,
9
button
,
10
key
,
11
};
12
13
inline
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
}
input
Definition
action_id.hpp:5
input::epsilon_not_equal
auto epsilon_not_equal(float x, float y) -> bool
Definition
input_type.hpp:13
input::input_type
input_type
Definition
input_type.hpp:7
input::input_type::key
@ key
input::input_type::axis
@ axis
input::input_type::button
@ button
input::key_code::y
@ y
input::key_code::x
@ x
UnravelEngine
UnravelEngine
engine
engine
input
action_map
input_type.hpp
Generated by
1.12.0