diff options
author | bjarni <bjarni@openttd.org> | 2007-03-11 10:55:35 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-03-11 10:55:35 +0000 |
commit | 50fe0fe059c0dd3af5acdfdfee144e10dc678157 (patch) | |
tree | b5331cf55f4eaf3f50d7092f65b2f19db44884e0 /src/gfx.h | |
parent | 6def45089d56bb59d87f0757807b3522980389d3 (diff) | |
download | openttd-50fe0fe059c0dd3af5acdfdfee144e10dc678157.tar.xz |
(svn r9111) -Feature: [OSX] mighty mice and touchpads can now scroll the map (in all directions)
It has to be enabled first (in patches->interface) first and this will disable scrollwheel zooming
Note: patch setting "Map scrollwheel speed" might need to be changed since the "correct" setting
appears to depend on what kind of mouse is in use (mighty mouse or touchpad)
Diffstat (limited to 'src/gfx.h')
-rw-r--r-- | src/gfx.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -5,6 +5,7 @@ #ifndef GFX_H #define GFX_H +#include "openttd.h" enum WindowKeyCodes { WKC_SHIFT = 0x8000, @@ -115,6 +116,12 @@ struct CursorVars { SpriteID pal; int wheel; ///< mouse wheel movement + + /* We need two different vars to keep track of how far the scrollwheel moved. + * OSX uses this for scrolling around the map. */ + int v_wheel; + int h_wheel; + const AnimCursor *animate_list; ///< in case of animated cursor, list of frames const AnimCursor *animate_cur; ///< in case of animated cursor, current frame uint animate_timeout; ///< in case of animated cursor, number of ticks to show the current cursor |