summaryrefslogtreecommitdiffstats
path: root/src/object/brain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/brain.cpp')
-rw-r--r--src/object/brain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/brain.cpp b/src/object/brain.cpp
index 7b580d7..5403903 100644
--- a/src/object/brain.cpp
+++ b/src/object/brain.cpp
@@ -203,8 +203,8 @@ bool CBrain::EventProcess(const Event &event)
action = EVENT_NULL;
if ( event.type == EVENT_KEY_DOWN &&
- (event.key.key == m_main->GetInputBinding(INPUT_SLOT_ACTION).key ||
- event.key.key == m_main->GetInputBinding(INPUT_SLOT_ACTION).joy ) &&
+ (event.key.key == m_main->GetInputBinding(INPUT_SLOT_ACTION).primary ||
+ event.key.key == m_main->GetInputBinding(INPUT_SLOT_ACTION).secondary ) &&
!m_main->GetEditLock() )
{
pw = static_cast< Ui::CWindow* >(m_interface->SearchControl(EVENT_WINDOW0));