Legacy:Functions/Input: Difference between revisions
Jump to navigation
Jump to search
created, needs reformatting |
section out |
||
| Line 3: | Line 3: | ||
=== Player Input === | === Player Input === | ||
* [[API:GetPlayerKey|GetPlayerKey]](''player'', ''player_key''): Returns the key constant associated with the configurable player key of 'player'. | |||
** Allowed 'player' values are 0 - 3 or: | |||
**: <var>PLAYER_1</var> | |||
**: <var>PLAYER_2</var> | |||
**: <var>PLAYER_3</var> | |||
**: <var>PLAYER_4</var> | |||
** Allowed 'player_key' values are: | |||
**: <var>PLAYER_KEY_MENU</var> | |||
**: <var>PLAYER_KEY_UP</var> | |||
**: <var>PLAYER_KEY_DOWN</var> | |||
**: <var>PLAYER_KEY_LEFT</var> | |||
**: <var>PLAYER_KEY_RIGHT</var> | |||
**: <var>PLAYER_KEY_A</var> | |||
**: <var>PLAYER_KEY_B</var> | |||
**: <var>PLAYER_KEY_X</var> | |||
**: <var>PLAYER_KEY_Y</var> | |||
{{API:Functions/Input/Keyboard}} | |||
{{API:Functions/Input/Mouse}} | |||
{{API:Functions/Input/Joystick}} | |||
Latest revision as of 23:12, 30 May 2013
Input
Player Input
- GetPlayerKey(player, player_key): Returns the key constant associated with the configurable player key of 'player'.
- Allowed 'player' values are 0 - 3 or:
- PLAYER_1
- PLAYER_2
- PLAYER_3
- PLAYER_4
- Allowed 'player_key' values are:
- PLAYER_KEY_MENU
- PLAYER_KEY_UP
- PLAYER_KEY_DOWN
- PLAYER_KEY_LEFT
- PLAYER_KEY_RIGHT
- PLAYER_KEY_A
- PLAYER_KEY_B
- PLAYER_KEY_X
- PLAYER_KEY_Y
- Allowed 'player' values are 0 - 3 or: