> For the complete documentation index, see [llms.txt](https://lua.legacy.fatality.win/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lua.legacy.fatality.win/fatality/input.md).

# Input

fatality.input

## Functions

### is\_key\_down

returns true if the [virtual key](https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes) is down

`input:is_key_down( key )`

| Parameter | Data type |                                          Description                                          |
| :-------: | :-------: | :-------------------------------------------------------------------------------------------: |
|    key    |  integer  | [virtual key code](https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes) |

### get\_mouse\_pos

returns a [vector2](/csgo/datatypes/vector2.md) with your cursor position coordinates

`input:get_mouse_pos( )`
