Returns whether keyCode is currently held by the user on their physical keyboard.
Parameters
| keyCode | KeyCode | The key to test. |
Errors
- VMException read failure -- Failed to read backing memory while executing this method.
Reports user input from the keyboard and mouse, and exposes events for input transitions.
| Name | Type | Access | Description |
|---|---|---|---|
| InputBegan | Event | read | Fired when the user begins interacting via a human-interface device (keyboard or mouse). The connection receives an since 1.7.0b-alphaRoblox ↗ |
| InputEnded | Event | read | Fired when the user stops interacting via a human-interface device. The connection receives an since 1.7.0b-alphaRoblox ↗ |
| InputChanged | Event | read | Fired when the user's mouse cursor moves while the Roblox or Madius window is focused. The connection receives an since 1.7.0b-alphaRoblox ↗ |
Returns whether keyCode is currently held by the user on their physical keyboard.
| keyCode | KeyCode | The key to test. |
Returns whether mouseButton is currently held by the user on their physical mouse. Use Enum.KeyCode.LeftButton, RightButton or MiddleButton.
| mouseButton | KeyCode | The mouse button to test. |
Returns the cursor position in screen coordinates. Updated only if either Roblox or Madius window is focused.