{"action":"created","issue":{"url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/36","labels_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/36/comments","events_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/36/events","html_url":"https://github.com/CBATeam/CBA_A3/issues/36","id":82048315,"number":36,"title":"CBA Keys - display assigned key in game?","user":{"login":"jaynus","id":2880909,"avatar_url":"https://avatars.githubusercontent.com/u/2880909?v=3","gravatar_id":"","url":"https://api.github.com/users/jaynus","html_url":"https://github.com/jaynus","followers_url":"https://api.github.com/users/jaynus/followers","following_url":"https://api.github.com/users/jaynus/following{/other_user}","gists_url":"https://api.github.com/users/jaynus/gists{/gist_id}","starred_url":"https://api.github.com/users/jaynus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaynus/subscriptions","organizations_url":"https://api.github.com/users/jaynus/orgs","repos_url":"https://api.github.com/users/jaynus/repos","events_url":"https://api.github.com/users/jaynus/events{/privacy}","received_events_url":"https://api.github.com/users/jaynus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CBATeam/CBA_A3/labels/Feature","name":"Feature","color":"ededed"},{"url":"https://api.github.com/repos/CBATeam/CBA_A3/labels/Keybinding","name":"Keybinding","color":"ededed"},{"url":"https://api.github.com/repos/CBATeam/CBA_A3/labels/Prio-Normal","name":"Prio-Normal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/CBATeam/CBA_A3/milestones/3","html_url":"https://github.com/CBATeam/CBA_A3/milestones/CBA_A3%20v2.0","labels_url":"https://api.github.com/repos/CBATeam/CBA_A3/milestones/3/labels","id":1144929,"number":3,"title":"CBA_A3 v2.0","description":"ASDG JR and JAM\r\nRewrite of XEH System for A3","creator":{"login":"ViperMaul","id":345876,"avatar_url":"https://avatars.githubusercontent.com/u/345876?v=3","gravatar_id":"","url":"https://api.github.com/users/ViperMaul","html_url":"https://github.com/ViperMaul","followers_url":"https://api.github.com/users/ViperMaul/followers","following_url":"https://api.github.com/users/ViperMaul/following{/other_user}","gists_url":"https://api.github.com/users/ViperMaul/gists{/gist_id}","starred_url":"https://api.github.com/users/ViperMaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViperMaul/subscriptions","organizations_url":"https://api.github.com/users/ViperMaul/orgs","repos_url":"https://api.github.com/users/ViperMaul/repos","events_url":"https://api.github.com/users/ViperMaul/events{/privacy}","received_events_url":"https://api.github.com/users/ViperMaul/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2015-06-02T13:22:28Z","updated_at":"2015-06-13T17:45:36Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-28T17:45:04Z","updated_at":"2015-06-19T13:06:38Z","closed_at":null,"body":"In my Raven addon, I have a button that you press to bring up the assigned keybinds. Once I switched the keys over to CBA Keybinding, I can't figure out how to get these assigned keys easily.\n\nI've come up with a way to test which group the keys are assigned to:\n_mainIndex = 0;\n\n{\nif (\"RQ-11B Raven Addon\" in ((profileNamespace getVariable \"cba_keybinding_registry\") select _x))\nexitWith {_mainIndex = _x};\n} forEach [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];\n\n_mainTitle = (profileNamespace getVariable \"cba_keybinding_registry\") select _mainIndex select 0;\nhint format [\"%1\",_mainTitle]; // returns \"RQ-11B Raven Addon\"\n\nThis tests up to 21 addons using CBA Keys and returns the index that contains my Raven Addon key title. If I drill down more, I can get to the key names and assigned key \"number\" but for example, \"Altitude Raise\" is assigned key \"17\" which equates to DIK_W. But how do I know that Key \"17\" is DIK_W?\n\nAnd, is there an easier way to do this? Currently to get \"17\", I have to find this:\n(profileNamespace getVariable \"cba_keybinding_registry\") select 1 select 1 select 0 select 1 select 0 select 0;\n\nIt would be a lot easier if I could instead type this: \n[\"RQ-11B Raven Addon\", \"Altitude Raise\"] call CBA_fnc_revealKeybind;\nwhich would return [DIK_W, [false, false, false]] (or whatever the key has been changed to from the default).\n\nCurrently, in my addon, I have a page pop up with the default keybinds, but not what the user changes those keybinds to. I know the user can hit escape and just look there by drilling down into the menus, but in my Raven, I like having a quick page pop up with the Raven operation and the assigned keys while they are operating the Raven.\n\nThanks in advance if this is possible.\n__Reporter:__ feint\n__Begin:__ 2015-03-22\n__Completed:__ 0\n"},"comment":{"url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/comments/113509548","html_url":"https://github.com/CBATeam/CBA_A3/issues/36#issuecomment-113509548","issue_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/36","id":113509548,"user":{"login":"Killswitch00","id":12647603,"avatar_url":"https://avatars.githubusercontent.com/u/12647603?v=3","gravatar_id":"","url":"https://api.github.com/users/Killswitch00","html_url":"https://github.com/Killswitch00","followers_url":"https://api.github.com/users/Killswitch00/followers","following_url":"https://api.github.com/users/Killswitch00/following{/other_user}","gists_url":"https://api.github.com/users/Killswitch00/gists{/gist_id}","starred_url":"https://api.github.com/users/Killswitch00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Killswitch00/subscriptions","organizations_url":"https://api.github.com/users/Killswitch00/orgs","repos_url":"https://api.github.com/users/Killswitch00/repos","events_url":"https://api.github.com/users/Killswitch00/events{/privacy}","received_events_url":"https://api.github.com/users/Killswitch00/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T13:06:38Z","updated_at":"2015-06-19T13:06:38Z","body":"Something like this could possibly be done using [CBA_fnc_getKeybind](https://dev.withsix.com/docs/cba_a3/files/keybinding/fnc_getKeybind-sqf.html#CBA_fnc_getKeybind) but I notice that it is incorrectly documented (the function does not return a numerical index value, but rather an array of...stuff."}}