InputAction

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.

Declaration

1
public class InputAction

Summary

Represents an input action with associated data

Metadata

Namespace: GridPlacement.Core.Types

Source File: cs/Core/Types/InputAction.cs

Assembly: GridPlacement.Core

Type: class

Constructors

InputAction

1
public InputAction()

Initializes a new instance of the InputAction class.


InputAction

1
2
3
4
5
6
public InputAction(
    string actionName,
    bool isPressed,
    float strength = 1.0f,
    InputDevice device = InputDevice.Unknown
)

Initializes a new instance of the InputAction class.

Parameters

NameDescription
actionNameThe action name.
isPressedWhether the action is pressed.
strengthThe action strength/value (0..1).
deviceThe input device that triggered the action.

Properties

ActionName

1
public string ActionName { get; set; }

Name of the input action


IsPressed

1
public bool IsPressed { get; set; }

Whether the action is currently pressed


IsJustPressed

1
public bool IsJustPressed { get; set; }

Whether the action was just pressed this frame


IsJustReleased

1
public bool IsJustReleased { get; set; }

Whether the action was just released this frame


Strength

1
public float Strength { get; set; }

Strength/value of the action (0.0 to 1.0)


Device

1
public InputDevice Device { get; set; }

Input device that triggered this action


Timestamp

1
public DateTime Timestamp { get; set; }

Timestamp when the action was triggered