Patch: Middle button scroll emulation

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Patch: Middle button scroll emulation

Post by Zuu »

I'm surprised if many people have use of this patch. This patch is usefull if you use a 3-button input device without a scroll wheel. Such as a second generation Wacom Intous.

The patch adds a feature which emulates scroll when you hold the middle button down and moves your pen/mouse/whatever.

This patch is implemented in src/video/sdl_v.cpp so win32 users will not be able to use it. (I guess win32 use src/video/win32_v.cpp for input and not sdl_v.cpp)

This is basically a hack. It's not meant to be included in the trunk as I don't think people who don't need it want to have it. It will just annoy those people.
Attachments
middle_scroll.patch
This patch is for revision 9715 of the trunk.
(1.78 KiB) Downloaded 138 times
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 36 guests