diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-15 04:07:07 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-15 04:07:07 +0000 |
commit | af3cd3ff34ef5da884b2c673afe1321f0cf372e7 (patch) | |
tree | a574c2155f571f216f29c44b29e333ea320322a6 /crawl-ref/source/libutil.h | |
parent | 71ed1a7fd6819916d79d194126c061ac1f087b11 (diff) | |
download | crawl-ref-af3cd3ff34ef5da884b2c673afe1321f0cf372e7.tar.gz crawl-ref-af3cd3ff34ef5da884b2c673afe1321f0cf372e7.zip |
Large tiles-related changes. Platform-specific rendering removed and replaced with SDL/OpenGL.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r-- | crawl-ref/source/libutil.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h index c7bfbeab01..5c874a72f4 100644 --- a/crawl-ref/source/libutil.h +++ b/crawl-ref/source/libutil.h @@ -324,4 +324,26 @@ basic_text_pattern<compile_glob_pattern, free_compiled_glob_pattern, glob_pattern_match> glob_pattern; + +class mouse_control +{ +public: + mouse_control(mouse_mode mode) + { + m_previous_mode = ms_current_mode; + ms_current_mode = mode; + } + + ~mouse_control() + { + ms_current_mode = m_previous_mode; + } + + static mouse_mode current_mode() { return ms_current_mode; } + +private: + mouse_mode m_previous_mode; + static mouse_mode ms_current_mode; +}; + #endif |