Class endstone::Input¶
Represents a movement input applied to a player.
#include <endstone/input.h>
Public Functions¶
| Type | Name |
|---|---|
| constexpr | Input () = default |
| constexpr | Input (bool forward, bool backward, bool left, bool right, bool jump, bool sneak, bool sprint) |
| Input (const Input &) = default |
|
| Input (Input &&) noexcept |
|
| constexpr bool | isBackward () const Gets whether a backward input is applied. |
| constexpr bool | isForward () const Gets whether a forward input is applied. |
| constexpr bool | isJump () const Gets whether a jump input is applied. |
| constexpr bool | isLeft () const Gets whether a left input is applied. |
| constexpr bool | isRight () const Gets whether a right input is applied. |
| constexpr bool | isSneak () const Gets whether a sneak input is applied. |
| constexpr bool | isSprint () const Gets whether a sprint input is applied. |
| Input & | operator= (const Input &) = default |
| Input & | operator= (Input &&) noexcept |
| constexpr bool | operator== (const Input &) const |
Public Functions Documentation¶
function Input [¼]¶
function Input [2/4]¶
inline constexpr endstone::Input::Input (
bool forward,
bool backward,
bool left,
bool right,
bool jump,
bool sneak,
bool sprint
)
function Input [¾]¶
function Input [4/4]¶
function isBackward¶
Gets whether a backward input is applied.
Returns:
true if a backward input is applied
function isForward¶
Gets whether a forward input is applied.
Returns:
true if a forward input is applied
function isJump¶
Gets whether a jump input is applied.
Returns:
true if a jump input is applied
function isLeft¶
Gets whether a left input is applied.
Returns:
true if a left input is applied
function isRight¶
Gets whether a right input is applied.
Returns:
true if a right input is applied
function isSneak¶
Gets whether a sneak input is applied.
Returns:
true if a sneak input is applied
function isSprint¶
Gets whether a sprint input is applied.
Returns:
true if a sprint input is applied
function operator=¶
function operator=¶
function operator==¶
The documentation for this class was generated from the following file include/endstone/input.h