0 votes

I've got a mouse with a wheelleft and a wheelright 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())
Godot version Godot 3.4.4 and Godot 3.5.1
in Engine by (95 points)

does using that same function work with the mouse wheel up and down?

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

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

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.

than it looks like Godot might not detect it. So maybe making a pull request for that is the best option you have

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.