aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9/source/scummhelp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/ds/arm9/source/scummhelp.cpp')
-rw-r--r--backends/platform/ds/arm9/source/scummhelp.cpp172
1 files changed, 172 insertions, 0 deletions
diff --git a/backends/platform/ds/arm9/source/scummhelp.cpp b/backends/platform/ds/arm9/source/scummhelp.cpp
new file mode 100644
index 0000000000..a76e1fa10f
--- /dev/null
+++ b/backends/platform/ds/arm9/source/scummhelp.cpp
@@ -0,0 +1,172 @@
+#include "stdafx.h"
+#include "scummhelp.h"
+
+#define ADD_BIND(k,d) do { key[i] = k; dsc[i] = d; i++; } while (0)
+#define ADD_TEXT(d) ADD_BIND("",d)
+#define ADD_LINE ADD_BIND("","")
+
+#define HELP_NUM_LINES 15
+
+namespace DS {
+
+void updateStrings(byte gameId, byte version, Common::Platform platform,
+ int page, Common::String &title, Common::String *&key, Common::String *&dsc) {
+ key = new Common::String[HELP_NUM_LINES];
+ dsc = new Common::String[HELP_NUM_LINES];
+ int i = 0;
+ switch (page) {
+ case 1: {
+ title = "DS Controls (right handed):";
+ ADD_BIND("Pad Left", "Left mouse button");
+ ADD_BIND("Pad Right", "Right mouse button");
+ ADD_BIND("Pad Up", "Mouse hover mode (no click)");
+ ADD_BIND("Pad Down", "Skip dialog line (some games)");
+ ADD_BIND("Start", "Pause/Game menu");
+ ADD_BIND("Select", "DS Options menu");
+ ADD_BIND("B", "Skip cutscenes");
+ ADD_BIND("A", "Switch screens");
+ ADD_BIND("Y", "Show/hide debug console");
+ ADD_BIND("X", "Show/hide keyboard");
+ ADD_BIND("L + Pad", "Scroll current touch screen view");
+ ADD_BIND("L + Pen", "Scroll current touch screen view");
+ ADD_BIND("L + B", "Zoom in");
+ ADD_BIND("L + A", "Zoom out");
+ break;
+ }
+
+ case 2: {
+ title = "DS Controls (left handed):";
+ ADD_BIND("Y", "Left mouse button");
+ ADD_BIND("A", "Right mouse button");
+ ADD_BIND("X", "Mouse hover mode (no click)");
+ ADD_BIND("B", "Skip dialog line (some games)");
+ ADD_BIND("Start", "Pause/Game menu");
+ ADD_BIND("Select", "DS Options menu");
+ ADD_BIND("Pad Down", "Skip cutscenes");
+ ADD_BIND("Pad Up", "Show/hide keyboard");
+ ADD_BIND("Pad Left", "Show/hide debug console");
+ ADD_BIND("Pad Right", "Swap screens");
+ ADD_BIND("R + Pad", "Scroll current touch screen view");
+ ADD_BIND("R + Pen", "Scroll current touch screen view");
+ ADD_BIND("R + B", "Zoom in");
+ ADD_BIND("R + A", "Zoom out");
+ break;
+ }
+
+ case 3: {
+ title = "Indiana Jones Fighting controls:";
+ ADD_BIND("Pad Left", "Move left");
+ ADD_BIND("Pad Right", "Move right");
+ ADD_BIND("Pad Up", "High guard");
+ ADD_BIND("Pad Down", "Guard down");
+ ADD_BIND("Y", "Guard middle");
+ ADD_BIND("X", "Punch high");
+ ADD_BIND("A", "Punch middle");
+ ADD_BIND("B", "Punch low");
+
+ ADD_BIND("L+R", "Hold during bootup to clear SRAM");
+ ADD_BIND("", "(flash cart only)");
+ break;
+ }
+ }
+
+
+ while (i < HELP_NUM_LINES) {
+ ADD_LINE;
+ }
+
+}
+
+}
+
+
+#undef ADD_BIND
+#undef ADD_TEXT
+#undef ADD_LINE
+
+#include "stdafx.h"
+#include "scummhelp.h"
+
+#define ADD_BIND(k,d) do { key[i] = k; dsc[i] = d; i++; } while (0)
+#define ADD_TEXT(d) ADD_BIND("",d)
+#define ADD_LINE ADD_BIND("","")
+
+#define HELP_NUM_LINES 15
+
+namespace DS {
+
+void updateStrings(byte gameId, byte version, Common::Platform platform,
+ int page, Common::String &title, Common::String *&key, Common::String *&dsc) {
+ key = new Common::String[HELP_NUM_LINES];
+ dsc = new Common::String[HELP_NUM_LINES];
+ int i = 0;
+ switch (page) {
+ case 1: {
+ title = "DS Controls (right handed):";
+ ADD_BIND("Pad Left", "Left mouse button");
+ ADD_BIND("Pad Right", "Right mouse button");
+ ADD_BIND("Pad Up", "Mouse hover mode (no click)");
+ ADD_BIND("Pad Down", "Skip dialog line (some games)");
+ ADD_BIND("Start", "Pause/Game menu");
+ ADD_BIND("Select", "DS Options menu");
+ ADD_BIND("B", "Skip cutscenes");
+ ADD_BIND("A", "Switch screens");
+ ADD_BIND("Y", "Show/hide debug console");
+ ADD_BIND("X", "Show/hide keyboard");
+ ADD_BIND("L + Pad", "Scroll current touch screen view");
+ ADD_BIND("L + Pen", "Scroll current touch screen view");
+ ADD_BIND("L + B", "Zoom in");
+ ADD_BIND("L + A", "Zoom out");
+ break;
+ }
+
+ case 2: {
+ title = "DS Controls (left handed):";
+ ADD_BIND("Y", "Left mouse button");
+ ADD_BIND("A", "Right mouse button");
+ ADD_BIND("X", "Mouse hover mode (no click)");
+ ADD_BIND("B", "Skip dialog line (some games)");
+ ADD_BIND("Start", "Pause/Game menu");
+ ADD_BIND("Select", "DS Options menu");
+ ADD_BIND("Pad Down", "Skip cutscenes");
+ ADD_BIND("Pad Up", "Show/hide keyboard");
+ ADD_BIND("Pad Left", "Show/hide debug console");
+ ADD_BIND("Pad Right", "Swap screens");
+ ADD_BIND("R + Pad", "Scroll current touch screen view");
+ ADD_BIND("R + Pen", "Scroll current touch screen view");
+ ADD_BIND("R + B", "Zoom in");
+ ADD_BIND("R + A", "Zoom out");
+ break;
+ }
+
+ case 3: {
+ title = "Indiana Jones Fighting controls:";
+ ADD_BIND("Pad Left", "Move left");
+ ADD_BIND("Pad Right", "Move right");
+ ADD_BIND("Pad Up", "High guard");
+ ADD_BIND("Pad Down", "Guard down");
+ ADD_BIND("Y", "Guard middle");
+ ADD_BIND("X", "Punch high");
+ ADD_BIND("A", "Punch middle");
+ ADD_BIND("B", "Punch low");
+
+ ADD_BIND("L+R", "Hold during bootup to clear SRAM");
+ ADD_BIND("", "(flash cart only)");
+ break;
+ }
+ }
+
+
+ while (i < HELP_NUM_LINES) {
+ ADD_LINE;
+ }
+
+}
+
+}
+
+
+#undef ADD_BIND
+#undef ADD_TEXT
+#undef ADD_LINE
+