Add credit :)

This commit is contained in:
JeremyStar™ 2024-05-08 22:47:14 +02:00
parent 8c7b14a7e1
commit 3e036096b0
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -171,6 +171,7 @@ func scroll(direction: SuiTypes.ScrollDirection) -> void:
bar.value = bar.value + bar.step * speed_wheel_multiplier * dsign 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): func _input(event: InputEvent):
if event is InputEventMouseButton: if event is InputEventMouseButton:
if event.is_pressed(): if event.is_pressed():