add control strings to wiki
This commit is contained in:
parent
3733b53cc5
commit
d9d7072c86
@ -19,11 +19,122 @@
|
|||||||
<p><a name="api"></a><strong>T2.2 </strong><strong>API</strong>
|
<p><a name="api"></a><strong>T2.2 </strong><strong>API</strong>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>It's rather small:<pre>
|
<p>It's rather small:<pre>
|
||||||
void input_action(const char *name, const char *control);
|
void input_action(const char *name
|
||||||
bool input_action_pressed(const char *name);
|
bool input_action_pressed(const char *name);
|
||||||
bool input_action_just_pressed(const char *name);
|
bool input_action_just_pressed(const char *name);
|
||||||
bool input_action_just_released(const char *name);
|
bool input_action_just_released(const char *name);
|
||||||
Vec2 input_action_position(const char *name);</pre>
|
Vec2 input_action_position(const char *name);</pre>
|
||||||
|
|
||||||
|
<p>Lists of controls, from src/twn_input.c:
|
||||||
|
<p>-- Keyboard --
|
||||||
|
<pre>
|
||||||
|
"A"
|
||||||
|
"B"
|
||||||
|
"C"
|
||||||
|
"D"
|
||||||
|
"E"
|
||||||
|
"F"
|
||||||
|
"G"
|
||||||
|
"H"
|
||||||
|
"I"
|
||||||
|
"J"
|
||||||
|
"K"
|
||||||
|
"L"
|
||||||
|
"M"
|
||||||
|
"N"
|
||||||
|
"O"
|
||||||
|
"P"
|
||||||
|
"Q"
|
||||||
|
"R"
|
||||||
|
"S"
|
||||||
|
"T"
|
||||||
|
"U"
|
||||||
|
"V"
|
||||||
|
"W"
|
||||||
|
"X"
|
||||||
|
"Y"
|
||||||
|
"Z"
|
||||||
|
"1"
|
||||||
|
"2"
|
||||||
|
"3"
|
||||||
|
"4"
|
||||||
|
"5"
|
||||||
|
"6"
|
||||||
|
"7"
|
||||||
|
"8"
|
||||||
|
"9"
|
||||||
|
"0"
|
||||||
|
"RETURN"
|
||||||
|
"ENTER" /* an alias */
|
||||||
|
"ESCAPE"
|
||||||
|
"BACKSPACE"
|
||||||
|
"TAB"
|
||||||
|
"SPACE"
|
||||||
|
"MINUS"
|
||||||
|
"EQUALS"
|
||||||
|
"LEFTBRACKET"
|
||||||
|
"RIGHTBRACKET"
|
||||||
|
"BACKSLASH"
|
||||||
|
"NONUSHASH"
|
||||||
|
"SEMICOLON"
|
||||||
|
"APOSTROPHE"
|
||||||
|
"GRAVE"
|
||||||
|
"COMMA"
|
||||||
|
"PERIOD"
|
||||||
|
"SLASH"
|
||||||
|
"CAPSLOCK"
|
||||||
|
"F1"
|
||||||
|
"F2"
|
||||||
|
"F3"
|
||||||
|
"F4"
|
||||||
|
"F5"
|
||||||
|
"F6"
|
||||||
|
"F7"
|
||||||
|
"F8"
|
||||||
|
"F9"
|
||||||
|
"F10"
|
||||||
|
"F11"
|
||||||
|
"F12"
|
||||||
|
"PRINTSCREEN"
|
||||||
|
"SCROLLLOCK"
|
||||||
|
"PAUSE"
|
||||||
|
"INSERT"
|
||||||
|
"HOME"
|
||||||
|
"PAGEUP"
|
||||||
|
"DELETE"
|
||||||
|
"END"
|
||||||
|
"PAGEDOWN"
|
||||||
|
"RIGHT"
|
||||||
|
"LEFT"
|
||||||
|
"DOWN"
|
||||||
|
"UP"
|
||||||
|
"KPDIVIDE"
|
||||||
|
"KPMULTIPLY"
|
||||||
|
"KPMINUS"
|
||||||
|
"KPPLUS"
|
||||||
|
"KPENTER"
|
||||||
|
"KP1"
|
||||||
|
"KP2"
|
||||||
|
"KP3"
|
||||||
|
"KP4"
|
||||||
|
"KP5"
|
||||||
|
"KP6"
|
||||||
|
"KP7"
|
||||||
|
"KP8"
|
||||||
|
"KP9"
|
||||||
|
"KP0"
|
||||||
|
"LCTRL"
|
||||||
|
"LSHIFT"
|
||||||
|
"LALT"
|
||||||
|
"RCTRL"
|
||||||
|
"RSHIFT"</pre>
|
||||||
|
|
||||||
|
<p>-- Mouse --
|
||||||
|
<pre>
|
||||||
|
"LCLICK"
|
||||||
|
"MCLICK"
|
||||||
|
"RCLICK"</pre>
|
||||||
|
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user