# InputAction(ロブロックス クラス) > Defines a gameplay action mechanic. These actions are then mapped to hardware inputs using InputBinding. - URL:https://roblox.minecraft-okinawa.com/reference/classes/InputAction/ - 公式:https://create.roblox.com/docs/reference/engine/classes/InputAction - 受け継いでいるクラス:Instance ## プロパティ - `InputAction.DisplayName: string`:Localized display name for this action. - `InputAction.Enabled: boolean`:Determines if the InputAction is enabled or not. - `InputAction.PreferredBinding: InputBinding`:The InputBinding best matching the player's current input device. - `InputAction.Type: InputActionType`:Specifies what type of input value the action is expecting. ## メソッド - `InputAction:GetState(): Variant`:Returns the current state of the InputAction. ## イベント - `InputAction.Pressed()`:Fires only when the InputAction.Type is set to Enum.InputActionType|Bool on a state transition from false to true. - `InputAction.Released()`:Fires only when the InputAction.Type is set to Enum.InputActionType|Bool on a state transition from true to false. - `InputAction.StateChanged(value: Variant)`:Fires for all InputActionType types whenever the state changes, except if the state attempts to transition to the same state. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)