> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# mousescroll

> 当 Roblox window active 时，发送 mouse wheel event。amount 参数会作为 Lua number 检查，通过 integer conversion 转换，并作为 dwData 值直接传给带 the requested mouse action 的 mouse input。Real 不会 normalize amount，也不会添加 movement data。该 function 不返回任何值，并且当 isrbxactive 会为 false 时直接返回，不发送 input。

<div className="real-function-page">
  ```lua theme={null}
  mousescroll(amount: number)
  ```

  ## 参数

  <ParamField path={"amount"} type={"number"} required>
    作为 Lua number 读取，并在传给 mouse input 前通过 integer conversion 转换的 wheel dwData value。
  </ParamField>
</div>
