172 Unknown = std::numeric_limits<UInt32>::max()
208 const auto found = std::find(set.begin(), set.end(),
button);
209 if(
found != set.end()) {
258 const auto found = std::find(set.begin(), set.end(),
button);
259 if(
found == set.end()) {
328 Any = std::numeric_limits<std::underlying_type_t<ModifierButton>>::max()
339 if(b == ModifierButton::Any) {
342 return (
static_cast<std::underlying_type_t<ModifierButton>
>(a) &
static_cast<std::underlying_type_t<ModifierButton>
>(b)) ==
343 static_cast<std::underlying_type_t<ModifierButton>
>(b);
351 return static_cast<ModifierButton>(
static_cast<std::underlying_type_t<ModifierButton>
>(a) |
static_cast<std::underlying_type_t<ModifierButton>
>(b));
359 return static_cast<ModifierButton>(
static_cast<std::underlying_type_t<ModifierButton>
>(a) |
static_cast<std::underlying_type_t<ModifierButton>
>(b));
373 return static_cast<ModifierButton>(
static_cast<std::underlying_type_t<ModifierButton>
>(a) &
374 ~
static_cast<std::underlying_type_t<ModifierButton>
>(b));
414 Unknown = std::numeric_limits<UInt8>::max()
#define CE_SCRIPT_EXPORT(...)
The CE_SCRIPT_EXPORT macro marks a class or method as exportable and available in scripting environme...
Definition Macros.hpp:247
Definition Application.hpp:19
ButtonSet & operator-=(ButtonSet &set, const Button button)
Removes a button from a set.
Definition Input.hpp:257
ModifierButton
A enumeration of possible modifier buttons.
Definition Input.hpp:298
@ Super
A constant for the super modifier key, called the "windows key" on Windows PCs and "command" on Macin...
@ None
A special modifier button constant that only returns true if no modifier key is pressed.
@ Shift
A constant for the shift modifier key.
@ Control
A constant for the control modifier key.
@ Alt
A constant for the alt modifier key.
Button
A enumeration of known buttons.
Definition Input.hpp:25
StringView toString(Button button) noexcept
Returns a string representation for the given button
Axis
A enumeration of known axes.
Definition Input.hpp:400
@ MouseVertical
A axis that represents the mouse cursor vertical position.
@ MouseScrollVertical
A axis that represents the mouse scroll wheel vertical position.
@ MouseHorizontal
A axis that represents the mouse cursor horizontal position.
@ MouseScrollHorizontal
A axis that represents the mouse scroll wheel horizontal position.
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
Vector< Button > ButtonSet
A type that represents a set of buttons.
Definition Input.hpp:176
std::uint16_t UInt16
Definition DataTypes.hpp:20
ButtonSet & operator+=(ButtonSet &set, const Button button)
Adds a button to a set.
Definition Input.hpp:207
ButtonSet operator-(const ButtonSet &set, const Button button)
Removes a button from a set.
Definition Input.hpp:270
std::uint8_t UInt8
Definition DataTypes.hpp:17
constexpr Byte operator|(const Byte left, const Byte right) noexcept
Definition DataTypes.hpp:57
Axis axis(const StringView &str) noexcept
Returns the Axis constant that is represented by str.
Button button(const StringView &str) noexcept
Returns the Button constant that is represented by str.
CursorMode
A enumeration of supported cursor modes.
Definition Input.hpp:428
@ Hidden
Hides the cursor, but does not capture it.
@ Normal
Displays the cursor normally as per the user operating system preferences.
@ Captured
Captures the cursor.
std::uint32_t UInt32
Definition DataTypes.hpp:23
constexpr Byte operator&(const Byte left, const Byte right) noexcept
Definition DataTypes.hpp:63
BasicString< T, CharTraits, RawAllocator > operator+(const BasicString< T, CharTraits, RawAllocator > &lhs, const T *rhs)
Definition String.hpp:119
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
decltype(&*std::declval< I >() found)(const I &it, C &container)
Returns a pointer to the value if found, otherwise nullptr.
Definition Iterator.hpp:572