mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Slight revamp of the options keymappings menu.
This commit is contained in:
@@ -32,12 +32,12 @@ void KeyboardInput::setKey(int keyCode, bool b)
|
||||
{
|
||||
int index = -1;
|
||||
|
||||
if (m_pOptions->m_keyBinds[0].value == keyCode) index = 0;
|
||||
if (m_pOptions->m_keyBinds[2].value == keyCode) index = 1;
|
||||
if (m_pOptions->m_keyBinds[1].value == keyCode) index = 2;
|
||||
if (m_pOptions->m_keyBinds[3].value == keyCode) index = 3;
|
||||
if (m_pOptions->m_keyBinds[4].value == keyCode) index = 4;
|
||||
if (m_pOptions->m_keyBinds[9].value == keyCode) index = 5;
|
||||
if (m_pOptions->getKey(KM_FORWARD) == keyCode) index = 0;
|
||||
if (m_pOptions->getKey(KM_BACK) == keyCode) index = 1;
|
||||
if (m_pOptions->getKey(KM_LEFT) == keyCode) index = 2;
|
||||
if (m_pOptions->getKey(KM_RIGHT) == keyCode) index = 3;
|
||||
if (m_pOptions->getKey(KM_JUMP) == keyCode) index = 4;
|
||||
if (m_pOptions->getKey(KM_SNEAK) == keyCode) index = 5;
|
||||
|
||||
if (index == -1)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user