diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-06 09:29:24 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-06 09:29:24 +0000 |
commit | 1a3922fd4a76605598293aff58591a77f37c0bb1 (patch) | |
tree | 965c54dc6423154ff382c729809ad60ddbb27078 /crawl-ref/source/tilesdl.cc | |
parent | cd3044ce7a7ad2f693ee52a4b3b194de34d36d9e (diff) | |
download | crawl-ref-1a3922fd4a76605598293aff58591a77f37c0bb1.tar.gz crawl-ref-1a3922fd4a76605598293aff58591a77f37c0bb1.zip |
Tiles again:
* Store index of last cell clicked on in inventory and suppress item
description if you just clicked on it, so you can see the messages
describing whatever you just did (should fix 2660578).
* Allow right-click as a synonym for '!' when toggling ^, A, m.
* Let shift left-click on avatar standing on altar = prayer.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9343 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r-- | crawl-ref/source/tilesdl.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc index ea16bd47c4..edcbf16516 100644 --- a/crawl-ref/source/tilesdl.cc +++ b/crawl-ref/source/tilesdl.cc @@ -613,10 +613,12 @@ int TilesFramework::handle_mouse(MouseEvent &event) // Handle "more" mode globally here, rather than duplicate across regions. if (mouse_control::current_mode() == MOUSE_MODE_MORE - && event.button == MouseEvent::LEFT && event.event == MouseEvent::PRESS) { - return CK_MOUSE_CLICK; + if (event.button == MouseEvent::LEFT) + return CK_MOUSE_CLICK; + else if (event.button == MouseEvent::RIGHT) + return CK_MOUSE_CMD; } // TODO enne - in what cases should the buttons be returned? |