Skip to content

[Suggestion] Add a localization option #1500

@tothpaul

Description

@tothpaul

Describe the solution you'd like

For example, I configured the game in French with an AZERTY keyboard.
By the way, the D3D11_CREATE_DEVICE_DEBUG function apparently requires a specific SDK; so I removed it.


 Minecraft.Client/Extrax64Stubs.cpp                 | 2 +-
 Minecraft.Client/Windows64/KeyboardMouseInput.h    | 6 +++---
 Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Minecraft.Client/Extrax64Stubs.cpp b/Minecraft.Client/Extrax64Stubs.cpp
index 0147896c..6369af31 100644
--- a/Minecraft.Client/Extrax64Stubs.cpp
+++ b/Minecraft.Client/Extrax64Stubs.cpp
@@ -544,7 +544,7 @@ void XMemDestroyDecompressionContext(XMEMDECOMPRESSION_CONTEXT Context)
 
 //#ifndef __PS3__
 #if !(defined _DURANGO || defined __PS3__ || defined __ORBIS__ || defined __PSVITA__)
-DWORD XGetLanguage() { return 1; }
+DWORD XGetLanguage() { return MINECRAFT_LANGUAGE_FRENCH;}
 DWORD XGetLocale() { return 0; }
 DWORD XEnableGuestSignin(BOOL fEnable) { return 0; }
 #endif
diff --git a/Minecraft.Client/Windows64/KeyboardMouseInput.h b/Minecraft.Client/Windows64/KeyboardMouseInput.h
index e8b5f588..38a3a303 100644
--- a/Minecraft.Client/Windows64/KeyboardMouseInput.h
+++ b/Minecraft.Client/Windows64/KeyboardMouseInput.h
@@ -14,15 +14,15 @@ public:
 	static const int MOUSE_MIDDLE = 2;
 	static const int MAX_MOUSE_BUTTONS = 3;
 
-	static const int KEY_FORWARD = 'W';
+	static const int KEY_FORWARD = 'Z';
 	static const int KEY_BACKWARD = 'S';
-	static const int KEY_LEFT = 'A';
+	static const int KEY_LEFT = 'Q';
 	static const int KEY_RIGHT = 'D';
 	static const int KEY_JUMP = VK_SPACE;
 	static const int KEY_SNEAK = VK_LSHIFT;
 	static const int KEY_SPRINT = VK_CONTROL;
 	static const int KEY_INVENTORY = 'E';
-	static const int KEY_DROP = 'Q';
+	static const int KEY_DROP = 'A';
 	static const int KEY_CRAFTING = 'C';
 	static const int KEY_CRAFTING_ALT = 'R';
 	static const int KEY_CHAT = 'T';
diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
index bee49df0..55f0d5c1 100644
--- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
+++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp
@@ -802,7 +802,7 @@ HRESULT InitDevice()
 
 	UINT createDeviceFlags = 0;
 #ifdef _DEBUG
-	createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG;
+	//createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG;
 #endif
 
 	D3D_DRIVER_TYPE driverTypes[] =

Is your suggestion related to a problem?

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions