More key codes. Explain (sort of) raw key codes in the manual.
[enjoyable.git] / Resources / Help / Contents / Resources / English.lproj / pgs / keyboard.html
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head>
6 <title>Keyboard Events</title>
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
8 <link href="../sty/default.css"
9 rel="stylesheet"
10 type="text/css"
11 media="all"/>
12 </head>
13
14 <body>
15 <a name="keyboard"></a>
16
17 <div id="navbox">
18 <div id="navleftbox">
19 <a class="navlink_left"
20 href="help:anchor='home' bookID='com.yukkurigames.Enjoyable.help'">
21 Home
22 </a>
23 </div>
24 </div>
25
26 <div id="headerbox">
27 <div id="iconbox">
28 <img id="iconimg"
29 src="../gfx/Icon.png"
30 alt="Enjoyable Icon"
31 height="32" width="32"/>
32 </div>
33 <h1>Keyboard Events</h1>
34 </div>
35
36 <p>
37 Enjoyable supports mapping joystick buttons, hat switches, and
38 axis thresholds to simulate keyboard keys. First disable
39 mapping by deactivating the ▶ button in the top left. Then press
40 the button on the joystick you want to map. This will select it
41 on the left-hand side of the screen.
42 </p>
43
44 <p>
45 If the button wasn't mapped or was mapped to a key press
46 already, the key input field activates and you can simply press
47 the key you want to use. Otherwise, click on the <b>Press a
48 key</b> label or input field, then press the key.
49 </p>
50
51 <p>
52 To change a key without disabling mapping you can choose the
53 input's entry in the sidebar directly.
54 </p>
55
56 <h3><a name="clear_key"></a>Clearing the Selection</h3>
57 <p>
58 To clear a mapped key select the <b>Do nothing</b>
59 option or press ⌘⌫ when the key input field is selected.
60 </p>
61
62 <h3><a name="cancel_key"></a>Cancelling the Selection</h3>
63 <p>
64 If you select the key input field by mistake you can press ⌘⎋ or
65 click on the field to cancel the selection without changing the
66 current setting.
67 </p>
68
69 <h3><a name="raw_key"></a>Raw Key Codes</h3>
70 <p>
71 Hold ⌘ and click on the field to enter a raw key code. Key codes
72 are hexadecimal numbers associated with each key on a
73 keyboard. For example, if you need to map something to the Windows Menu
74 key and your keyboard doesn't have one, enter <kbd>0x6E</kbd> here.
75 </p>
76 </body>
77 </html>