diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-19 10:06:39 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-19 10:06:39 +0000 |
commit | 7965fc105191a74a9b8c26ee8b646c7394434a9a (patch) | |
tree | 3530857b97b85b5340599e90a4ce1438ebf34c0c /src/gui/inventorywindow.cpp | |
parent | 77944e37304cd1b282d4ba31ef624810631d58a3 (diff) | |
download | mana-7965fc105191a74a9b8c26ee8b646c7394434a9a.tar.gz mana-7965fc105191a74a9b8c26ee8b646c7394434a9a.tar.bz2 mana-7965fc105191a74a9b8c26ee8b646c7394434a9a.tar.xz mana-7965fc105191a74a9b8c26ee8b646c7394434a9a.zip |
Fixed key special values. Reduced amount of spurious item deselections.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r-- | src/gui/inventorywindow.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 1e62b130..ec241800 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -35,6 +35,7 @@ #include "item_amount.h" #include "itemcontainer.h" #include "scrollarea.h" +#include "sdlinput.h" #include "viewport.h" #include "../item.h" @@ -263,8 +264,8 @@ void InventoryWindow::keyPressed(gcn::KeyEvent &event) { switch (event.getKey().getValue()) { - case gcn::Key::LEFT_SHIFT: - case gcn::Key::RIGHT_SHIFT: + case Key::LEFT_SHIFT: + case Key::RIGHT_SHIFT: mSplit = true; } } @@ -273,8 +274,8 @@ void InventoryWindow::keyReleased(gcn::KeyEvent &event) { switch (event.getKey().getValue()) { - case gcn::Key::LEFT_SHIFT: - case gcn::Key::RIGHT_SHIFT: + case Key::LEFT_SHIFT: + case Key::RIGHT_SHIFT: mSplit = false; } } |