mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 08:45:33 +00:00
Use mouse release instead of press for binding actions
Resolves difficulties binding actions to mouse buttons (Fixes #1364)
This commit is contained in:
parent
50a72ed710
commit
afc1fa49f6
1 changed files with 13 additions and 10 deletions
23
extern/oics/ICSInputControlSystem_mouse.cpp
vendored
23
extern/oics/ICSInputControlSystem_mouse.cpp
vendored
|
@ -333,11 +333,6 @@ namespace ICS
|
|||
}
|
||||
}
|
||||
}
|
||||
else if(mDetectingBindingListener)
|
||||
{
|
||||
mDetectingBindingListener->mouseButtonBindingDetected(this,
|
||||
mDetectingBindingControl, btn, mDetectingBindingDirection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -345,11 +340,19 @@ namespace ICS
|
|||
{
|
||||
if(mActive)
|
||||
{
|
||||
ControlsButtonBinderMapType::const_iterator it = mControlsMouseButtonBinderMap.find((int)btn);
|
||||
if(it != mControlsMouseButtonBinderMap.end())
|
||||
{
|
||||
it->second.control->setChangingDirection(Control::STOP);
|
||||
}
|
||||
if (!mDetectingBindingControl)
|
||||
{
|
||||
ControlsButtonBinderMapType::const_iterator it = mControlsMouseButtonBinderMap.find((int)btn);
|
||||
if(it != mControlsMouseButtonBinderMap.end())
|
||||
{
|
||||
it->second.control->setChangingDirection(Control::STOP);
|
||||
}
|
||||
}
|
||||
else if(mDetectingBindingListener)
|
||||
{
|
||||
mDetectingBindingListener->mouseButtonBindingDetected(this,
|
||||
mDetectingBindingControl, btn, mDetectingBindingDirection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue