Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mousewheel scrolling for non OSX platform #3051

Closed
DorpsGek opened this issue Jul 23, 2009 · 2 comments
Closed

Mousewheel scrolling for non OSX platform #3051

DorpsGek opened this issue Jul 23, 2009 · 2 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

Xytovl opened the ticket and wrote:

It would be nice to have mousewheel scrolling on all platforms.
Usually buttons 6 and 7 (SDL_BUTTON_X1 and SDL_BUTTON_X2 in SDL) are used for horizontal scrolling.

This simple patch activates it, there is just one thing I am not sure is good : I have to reset h_wheel and v_wheel in order to make it do nothing when the mouse is ont on a viewport. I do this when mouse moves, if I do it in the DispatchMouseWheelEvent function, scrolling does not work on the minimap.

Xytovl

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3051
@DorpsGek
Copy link
Member Author

Rubidium wrote:

Sounds like an interesting feature, but sadly enough I can't be of much help because I don't have such a mouse and as such can't see what SDL outputs/what it should do with it.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3051#comment6488

@DorpsGek
Copy link
Member Author

LordAro closed the ticket.

Reason for closing: Out of date

Patch no longer applies, and even when adapting to current code layout no longer does any scrolling. Open a new issue with a new patch if you so despire


This comment was imported from FlySpray: https://bugs.openttd.org/task/3051

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant