Big leap for key rebinding and crossplatform-ness.

This commit is contained in:
iProgramInCpp
2023-08-22 17:25:24 +03:00
parent f3fc78e151
commit d3ef629471
10 changed files with 248 additions and 279 deletions

View File

@@ -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;