Add credit :)
This commit is contained in:
parent
8c7b14a7e1
commit
3e036096b0
1 changed files with 1 additions and 0 deletions
|
@ -171,6 +171,7 @@ func scroll(direction: SuiTypes.ScrollDirection) -> void:
|
|||
|
||||
bar.value = bar.value + bar.step * speed_wheel_multiplier * dsign
|
||||
|
||||
# Credit: https://forum.godotengine.org/t/how-do-i-get-input-from-the-mouse-wheel/27979/2
|
||||
func _input(event: InputEvent):
|
||||
if event is InputEventMouseButton:
|
||||
if event.is_pressed():
|
||||
|
|
Loading…
Reference in a new issue