diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-01-07 17:23:57 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-01-07 17:23:57 +0000 |
commit | 141e55d846ff8356acb0dd6eb8bcf766dbc86a2b (patch) | |
tree | 04660c31575974a2086e015ad006b2ac30c6124d /manual/plugins | |
parent | 6ea22829c90de82cbed62f7a656506c4f8294149 (diff) | |
download | rockbox-141e55d846ff8356acb0dd6eb8bcf766dbc86a2b.tar.gz rockbox-141e55d846ff8356acb0dd6eb8bcf766dbc86a2b.zip |
Rework the chip8 button table, rotate button names to make it fit; some general style adjustments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11939 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual/plugins')
-rw-r--r-- | manual/plugins/chip8emulator.tex | 124 |
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. | |||
12 | The only problem is that they are based on a 4x4 keyboard, but since most | 12 | The only problem is that they are based on a 4x4 keyboard, but since most |
13 | games do not use all of the buttons, this can easily be worked around. | 13 | games do not use all of the buttons, this can easily be worked around. |
14 | 14 | ||
15 | To do this, one may put a \fname{``.c8k''} file with the same name as the | 15 | To do this, one may put a \fname{.c8k} file with the same name as the |
16 | original program which contains new key mappings (for \fname{BLINKY.ch8}, one | 16 | original program which contains new key mappings (for \fname{BLINKY.ch8}, one |
17 | writes a \fname{BLINKY.c8k} file). That \fname{.c8k} file contains 16 | 17 | writes a \fname{BLINKY.c8k} file). That \fname{.c8k} file contains 16 |
18 | characters describing the mapping from the Chip8 keyboard to the default key | 18 | characters describing the mapping from the Chip8 keyboard to the default key |
19 | mapping (that way, several Chip8 keys can be pressed using only one | 19 | mapping (that way, several Chip8 keys can be pressed using only one |
20 | Rockbox key). For example, a file containing the single line:\\\\ | 20 | Rockbox key). For example, a file containing the single line: |
21 | \textbf{0122458469ABCDEF}\\\\ | 21 | \begin{code} |
22 | would correspond to the following non-default mappings:\\\\ | 22 | 0122458469ABCDEF |
23 | 3 $\rightarrow$ 2\hspace{1cm} 6 $\rightarrow$ 8\hspace{1cm} 7 $\rightarrow$ | 23 | \end{code} |
24 | 4\hspace{1cm} 8 $\rightarrow$ 6\\\\ | 24 | would correspond to the following non-default mappings: |
25 | Default keymappings: | 25 | |
26 | 3 $\rightarrow$ 2, 6 $\rightarrow$ 8, 7 $\rightarrow$4, 8 $\rightarrow$ 6. | ||
27 | |||
28 | The 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 | ||
52 | Some places where can you can find \fname{.ch8} files: | 116 | Some places where can you can find \fname{.ch8} files: |