# VirtualInput(ロブロックス クラス) > Simulates mouse, keyboard, and pointer input as if it were performed by a real player. - URL:https://roblox.minecraft-okinawa.com/reference/classes/VirtualInput/ - 公式:https://create.roblox.com/docs/reference/engine/classes/VirtualInput - 受け継いでいるクラス:Object ## メソッド - `VirtualInput:SendKey(isPressed: boolean, keyCode: KeyCode, isRepeatedKey: boolean): ()`:Injects a keyboard key press or release event. - `VirtualInput:SendMouseButton(position: Vector2, button: UserInputType, isDown: boolean, repeatCount: int): ()`:Injects a mouse button press or release event at the specified screen position. - `VirtualInput:SendMouseDelta(positionDelta: Vector2): ()`:Injects a relative mouse movement event. Only works while the player's cursor is locked. - `VirtualInput:SendMousePosition(position: Vector2): ()`:Moves the virtual mouse cursor to the specified absolute screen position. - `VirtualInput:SendPointerAction(position: Vector2, pointerAction: Dictionary): ()`:Injects a scroll wheel, trackpad pan, or pinch gesture event at the specified screen position. - `VirtualInput:SendTextInput(text: string): ()`:Injects a text input event as if the specified string was typed on a keyboard. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)