InputButton
Namespace: Murder.Core.Input
Assembly: Murder.dll
public sealed struct InputButton
⭐ Constructors
public InputButton()
public InputButton(Buttons button)
Parameters
button
Buttons
public InputButton(Keys key)
Parameters
key
Keys
public InputButton(GamepadAxis axis)
Parameters
axis
GamepadAxis
public InputButton(MouseButtons button)
Parameters
button
MouseButtons
⭐ Properties
Source
public readonly InputSource Source;
Returns
InputSource
⭐ Methods
Check(InputState)
public bool Check(InputState state)
Parameters
state
InputState
Returns
bool
IsAvailable(GamePadCapabilities)
public bool IsAvailable(GamePadCapabilities capabilities)
Parameters
capabilities
GamePadCapabilities
Returns
bool
GetInputImageStyle()
public InputImageStyle GetInputImageStyle()
Returns
InputImageStyle
ButtonToAxis(bool, bool, bool, bool)
public Vector2 ButtonToAxis(bool up, bool right, bool left, bool down)
Parameters
up
bool
right
bool
left
bool
down
bool
Returns
Vector2
GetAxis(GamePadState)
public Vector2 GetAxis(GamePadState gamepadState)
Parameters
gamepadState
GamePadState
Returns
Vector2
ToString()
public virtual string ToString()
Returns
string
⚡