aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/ControlsScreen.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/ControlsScreen.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/ControlsScreen.h')
-rw-r--r--Minecraft.Client/ControlsScreen.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Minecraft.Client/ControlsScreen.h b/Minecraft.Client/ControlsScreen.h
new file mode 100644
index 00000000..b70bc4e1
--- /dev/null
+++ b/Minecraft.Client/ControlsScreen.h
@@ -0,0 +1,31 @@
+#pragma once
+#include "Screen.h"
+using namespace std;
+class Options;
+
+class ControlsScreen : public Screen
+{
+private:
+ Screen *lastScreen;
+protected:
+ wstring title;
+private:
+ Options *options;
+
+ int selectedKey;
+
+ static const int BUTTON_WIDTH = 70;
+ static const int ROW_WIDTH = 160;
+
+public:
+ ControlsScreen(Screen *lastScreen, Options *options);
+private:
+ int getLeftScreenPosition();
+public:
+ void init();
+protected:
+ void buttonClicked(Button *button);
+ void keyPressed(wchar_t eventCharacter, int eventKey);
+public:
+ void render(int xm, int ym, float a);
+}; \ No newline at end of file