diff options
Diffstat (limited to 'source/frontend/StarContainerInterface.cpp')
-rw-r--r-- | source/frontend/StarContainerInterface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/frontend/StarContainerInterface.cpp b/source/frontend/StarContainerInterface.cpp index 5a06d04..5d7ae89 100644 --- a/source/frontend/StarContainerInterface.cpp +++ b/source/frontend/StarContainerInterface.cpp @@ -18,6 +18,7 @@ #include "StarStatusControllerLuaBindings.hpp" #include "StarWidgetLuaBindings.hpp" #include "StarAugmentItem.hpp" +#include <StarInput.hpp> namespace Star { @@ -265,6 +266,7 @@ void ContainerPane::update(float dt) { m_script->update(m_script->updateDt(dt)); m_itemBag->clearItems(); + Input& input = Input::singleton(); if (!m_containerInteractor->containerOpen()) { dismiss(); @@ -296,6 +298,10 @@ void ContainerPane::update(float dt) { fuelGauge->setPotentialFuelAmount(totalFuelAmount); fuelGauge->setRequestedFuelAmount(0); } + + if (input.bindDown("opensb", "takeAll")) { + m_containerInteractor->clearContainer(); + } } } } |