Since engine version: 1.0 OC
Returns the name of the key, mouse of joystick button assigned to a control for a player. If the player number is invalid,
nilis returned. For unassigned or invalid controls, "" is returned.
string GetPlayerControlAssignment(int player, int control, bool human_readable, bool short_name);
- Number of the player for whom the control set is queried.
- Control to query. A CON_* constant should be used here.
- If true, some internal names such as JOY_* for joystick buttons are replaced by variants suitable for display to the player.
- If true, short names are preferred if available. Currently effects Mac builds only.
For network games and replays, the returned value is not synchronized. If the function is called for a remote player or during replay, "" is always returned for valid player numbers.