summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manual/plugins/chip8emulator.tex124
1 files changed, 94 insertions, 30 deletions
diff --git a/manual/plugins/chip8emulator.tex b/manual/plugins/chip8emulator.tex
index 867fbc5b57..7f927effaf 100644
--- a/manual/plugins/chip8emulator.tex
+++ b/manual/plugins/chip8emulator.tex
@@ -12,41 +12,105 @@ graphics.
12The only problem is that they are based on a 4x4 keyboard, but since most 12The only problem is that they are based on a 4x4 keyboard, but since most
13games do not use all of the buttons, this can easily be worked around. 13games do not use all of the buttons, this can easily be worked around.
14 14
15To do this, one may put a \fname{``.c8k''} file with the same name as the 15To do this, one may put a \fname{.c8k} file with the same name as the
16original program which contains new key mappings (for \fname{BLINKY.ch8}, one 16original program which contains new key mappings (for \fname{BLINKY.ch8}, one
17writes a \fname{BLINKY.c8k} file). That \fname{.c8k} file contains 16 17writes a \fname{BLINKY.c8k} file). That \fname{.c8k} file contains 16
18characters describing the mapping from the Chip8 keyboard to the default key 18characters describing the mapping from the Chip8 keyboard to the default key
19mapping (that way, several Chip8 keys can be pressed using only one 19mapping (that way, several Chip8 keys can be pressed using only one
20Rockbox key). For example, a file containing the single line:\\\\ 20Rockbox key). For example, a file containing the single line:
21\textbf{0122458469ABCDEF}\\\\ 21\begin{code}
22would correspond to the following non-default mappings:\\\\ 22 0122458469ABCDEF
233 $\rightarrow$ 2\hspace{1cm} 6 $\rightarrow$ 8\hspace{1cm} 7 $\rightarrow$ 23\end{code}
244\hspace{1cm} 8 $\rightarrow$ 6\\\\ 24would correspond to the following non-default mappings:
25Default keymappings: 25
263 $\rightarrow$ 2, 6 $\rightarrow$ 8, 7 $\rightarrow$4, 8 $\rightarrow$ 6.
27
28The default keymappings are:
26\begin{table} 29\begin{table}
27 \begin{center} 30 \begin{center}
28 \begin{footnotesize} 31 \begin{tabularx}{.9\textwidth}{c|ccccccccccccccccc}
29 \begin{tabular}{@{}*{17}{@{\hspace{1mm}}c@{\hspace{1mm}}|}@{\hspace{1mm}} 32 \toprule
30 c@{}}\toprule 33 Chip8 & Off & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9
31 \textbf{Chip8 key} & Off & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B 34 & A & B & C & D & E & F\\
32 & C & D & E & F\\ 35 \midrule
33 \textbf{Key} & 36 \begin{sideways}Key\end{sideways}
34 \opt{RECORDER_PAD}{\ButtonOff & & \ButtonFOne & \ButtonUp & 37 &
35 \ButtonFThree & \ButtonLeft & \ButtonPlay & \ButtonRight & 38 % key "off"
36 \ButtonFTwo & \ButtonDown & \ButtonOn & & & & & &} 39 \begin{sideways}
37 \opt{ONDIO_PAD}{\ButtonOff & & & \ButtonUp & & \ButtonLeft & \ButtonMenu 40 \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff}
38 & \ButtonRight & & \ButtonDown & & & & & & &} 41 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonMenu}
39 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff & & \ButtonUp & & 42 \opt{IAUDIO_X5_PAD}{\ButtonPower}
40 \ButtonLeft & \ButtonSelect & \ButtonRight & & \ButtonDown & & & & 43 \end{sideways}
41 & & &} 44 &
42 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonMenu & & & \ButtonScrollBack & & \ButtonLeft & 45 % Key "0"
43 \ButtonPlay & \ButtonRight & & \ButtonScrollFwd & & & & & & &} 46 &
44 \opt{IAUDIO_X5_PAD}{\ButtonPower & & & \ButtonUp & & \ButtonLeft & 47 % "Key "1"
45 \ButtonSelect & \ButtonRight & & \ButtonDown & & & & & & &} 48 \begin{sideways}
46 \\\bottomrule 49 \opt{RECORDER_PAD}{\ButtonFOne}\opt{ONDIO_PAD}{\ButtonUp}
47 \end{tabular} 50 \end{sideways}
48 \end{footnotesize} 51 &
49 \end{center} 52 % Key "2"
53 \begin{sideways}
54 \opt{RECORDER_PAD,ONDIO_PAD}{\ButtonUp}
55 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonScrollBack}
56 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD}{\ButtonUp}
57 \end{sideways}
58 &
59 % Key "3"
60 \begin{sideways}
61 \opt{RECORDER_PAD}{\ButtonFThree}
62 \end{sideways}
63 % Key "4"
64 \begin{sideways}
65 \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonLeft}
66 \opt{IPOD_4G_PAD,IPOD_3G_PAD,IAUDIO_X5_PAD}{\ButtonLeft}
67 \end{sideways}
68 &
69 % Key "5"
70 \begin{sideways}
71 \opt{RECORDER_PAD}{\ButtonPlay}\opt{ONDIO_PAD}{\ButtonMenu}
72 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD}{\ButtonSelect}
73 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonPlay}
74 \end{sideways}
75 &
76 % Key "6"
77 \begin{sideways}
78 \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonRight}
79 \opt{IPOD_4G_PAD,IPOD_3G_PAD,IAUDIO_X5_PAD}{\ButtonRight}
80 \end{sideways}
81 &
82 % Key "7"
83 \begin{sideways}
84 \opt{RECORDER_PAD}{\ButtonFTwo}
85 \end{sideways}
86 &
87 % Key "8"
88 \begin{sideways}
89 \opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonDown}
90 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonScrollFwd}
91 \opt{IAUDIO_X5_PAD}{\ButtonDown}
92 \end{sideways}
93 &
94 % Key "9"
95 \begin{sideways}
96 \opt{RECORDER_PAD}{\ButtonOn}
97 \end{sideways}
98 &
99 % Key "A"
100 &
101 % Key "B"
102 &
103 % Key "C"
104 &
105 % Key "D"
106 &
107 % Key "E"
108 &
109 % Key "F"
110 &
111 \\\bottomrule
112 \end{tabularx}
113 \end{center}
50\end{table} 114\end{table}
51 115
52Some places where can you can find \fname{.ch8} files: 116Some places where can you can find \fname{.ch8} files: