ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.66k stars 373 forks source link

Castle screen, Troop arrangement, make using the mouse wheel up and the mouse wheel down perform the same actions as the arrow up and arrow down keys on the keyboard #9073

Open LeHerosInconnu opened 2 weeks ago

LeHerosInconnu commented 2 weeks ago

Preliminary checks

Describe the problem requiring a solution

In the castle screen, make using the mouse wheel up and the mouse wheel down perform the same actions as the arrow up and arrow down keys on the keyboard.

In fheroes2: Using keyboard keys:

https://github.com/user-attachments/assets/ae3399c3-8113-48da-b378-6cfe5f0a9320

Describe the possible solution

Make using the mouse wheel up and the mouse wheel down perform the same actions as the arrow up and arrow down keys on the keyboard.

Additional info

No response

zenseii commented 2 weeks ago

Hi, @LeHerosInconnu. I believe this could be solved when this issue https://github.com/ihhub/fheroes2/issues/6580 gets solved because allowing to map hotkeys to the extra buttons on the mouse would allow you to map this specific function to the mouse wheel.

As a consequence, I believe this issue could be closed since it can be considered as part of what that other issue covers. What do you think, @LeHerosInconnu ?

LeHerosInconnu commented 2 weeks ago

Hello @zenseii,

Hi, @LeHerosInconnu. I believe this could be solved when this issue #6580 gets solved because allowing to map hotkeys to the extra buttons on the mouse would allow you to map this specific function to the mouse wheel.

As a consequence, I believe this issue could be closed since it can be considered as part of what that other issue covers. What do you think, @LeHerosInconnu ?

I prefer to leave the issue open, as it allows me to see what has already been done or what is still to come. It's not always easy to remember what's already been suggested over the years. :) I have provided a link to this issue in the indicated thread.

zenseii commented 2 weeks ago

@LeHerosInconnu

I prefer to leave the issue open, as it allows me to see what has already been done or what is still to come. It's not always easy to remember what's already been suggested over the years. :)

I basically just did a search for "scroll wheel" in the issues search box because I imagined such a suggestion would have already been made by now😅

I have provided a link to this issue in the indicated thread.

As you can see from the issue thread, just from me mentioning it by a link here it already got linked automatically. This is just fyi.