mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
add input.get_mouse_scroll()
This commit is contained in:
parent
6b915b33a4
commit
c83a73102e
3 changed files with 18 additions and 0 deletions
|
|
@ -63,6 +63,13 @@ input.get_mouse_delta() --> {int, int}
|
|||
|
||||
Returns cursor movement delta.
|
||||
|
||||
```lua
|
||||
input.get_mouse_scroll() --> int
|
||||
```
|
||||
|
||||
Returns the vertical mouse wheel offset accumulated during the current frame.
|
||||
A positive value indicates scrolling up; a negative value indicates scrolling down.
|
||||
|
||||
```lua
|
||||
input.get_bindings() --> strings array
|
||||
```
|
||||
|
|
|
|||
|
|
@ -34,6 +34,10 @@ input.get_mouse_pos() -> {number, number}
|
|||
|
||||
-- Возращает дельту позиции курсора.
|
||||
input.get_mouse_delta() -> {number, number}
|
||||
|
||||
-- Возвращает вертикальное смещение колеса мыши, накопленное за текущий кадр.
|
||||
-- Положительное значение соответствует прокрутке вверх, отрицательное - вниз.
|
||||
input.get_mouse_scroll() -> number
|
||||
```
|
||||
|
||||
## Создание обработчиков
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue