mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
Big leap for key rebinding and crossplatform-ness.
This commit is contained in:
@@ -73,9 +73,9 @@ void LocalPlayer::calculateFlight(float x, float y, float z)
|
||||
float z1 = f1 * z;
|
||||
|
||||
float y1 = 0.0f;
|
||||
if (Keyboard::isKeyDown(AKEYCODE_BUTTON_R1))
|
||||
if (Keyboard::isKeyDown(m_pMinecraft->m_options.getKey(KM_FLY_UP)))
|
||||
y1 = f1 * 0.2f;
|
||||
if (Keyboard::isKeyDown(AKEYCODE_BUTTON_L1))
|
||||
if (Keyboard::isKeyDown(m_pMinecraft->m_options.getKey(KM_FLY_DOWN)))
|
||||
y1 = f1 * -0.2f;
|
||||
|
||||
field_BFC += x1;
|
||||
|
||||
Reference in New Issue
Block a user