VN_fnc_kbm_getKey

From Savage Game Design Wiki
Revision as of 19:25, 5 January 2021 by Lou Montana (talk | contribs) (Text replacement - " |e=" to " |a= |e=")
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Heyoxe
Argument(s): n/a
Effect(s): unknown

Description

/*
	File: fn_kbm_getKey.sqf
	Author: Heyoxe
	Date: 2020-10-14
	Last Update: 2020-11-06
	Public: Yes
	
	Description:
		Returns the currently assigned keybind to a specific action.
	
	Parameter(s):
		_action - Name of the action as define in the confign [STRING, defaults to "]

	Returns:
		_parsed: Array representing the current assigned key and it's modifiers [ARRAY]
			0 - _key: <Number> DIK Key code.
			1 - _shift: <Boolean> Needs Shift modifier to be pressed.
			2 - _ctrl: <Boolean> Needs Ctrl modifier to be pressed.
			3 - _alt: <Boolean> Needs Alt modifier to be pressed.
	
	Example(s):
		private _data = ["GestureMenu"] call VN_fnc_kbm_getKey; // _data => [15,false,false,false] (default)
*/


(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)

Syntax

Syntax
[] call VN_fnc_kbm_getKey;
Return value
Nothing

Examples

Example 1
-