![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Starfighter |
I’ve got a mouse with a wheel_left and a wheel_right buttons. They work fine in games but I can’t detect them using Godot.
I’am using GD Script and I tried the code below with Godot 3.4.4 and Godot 3.5.1
Note : All the other Mouse butttons are detected correctly.
Thanks for any help.
Code to reproduce the bug :
func _input(event: InputEvent) -> void:
if event is InputEventMouseButton: # Read Mouse Buttons
print ("Mouse Button Event = ", event.as_text())
does using that same function work with the mouse wheel up and down?
strangerturtle | 2022-10-06 00:09
try just print all event without an if block to see if Godot even detects it, as it may be an issue with the if block because Godot doesn’t have a built-in func for those
Tentamens | 2022-10-07 03:20
does using that same function work with the mouse wheel up and down?
Hi,
yes it works fine with wheel up and wheel down.
Thanks
Starfighter | 2022-10-07 08:39
try just print all event without an if block to see if Godot even detects it, as it may be an issue with the if block because Godot doesn’t have a built-in func for those
Hi,
I just tried, but removing the if block doesn’t change anything unfortunately.
All events are detected and printed correctly but wheel left and wheel right are not detected.
Thanks.
Starfighter | 2022-10-07 08:54
than it looks like Godot might not detect it. So maybe making a pull request for that is the best option you have
Tentamens | 2022-10-07 18:56
than it looks like Godot might not detect it. So maybe making a pull request for that is the best option you have
Thanks a lot. So far, I only used the Q&A’s godot service. Please, may you tell me the best way to proceed to make a pull a request? I went to repository on “GitHub → Pull request → New pull request”, but there are so many sections, I’am kinda ‘lost’ with “the branches or forks” and I want to post the issue in the good place. What is the best way to do ? Is GitHub the best place to go ? Thanks in advance for your advises.
Cheers
Starfighter | 2022-10-08 10:08