Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keybinding: CBA_fnc_getKeybind returns bad values #692

Closed
PabstMirror opened this issue Jun 5, 2017 · 0 comments
Closed

Keybinding: CBA_fnc_getKeybind returns bad values #692

PabstMirror opened this issue Jun 5, 2017 · 0 comments
Milestone

Comments

@PabstMirror
Copy link
Contributor

ref https://github.com/CBATeam/CBA_A3/blob/master/addons/keybinding/fnc_getKeybind.sqf
["ACRE2", "HeadSet"] call CBA_fnc_getKeybind
now returns
["ACRE2","HeadSet",any,any,any,any,any,any]

previously we used the following to pass through keypresses in our spectator's keyDown handler:

private _key = _this select 1;
if ([_key, _this select [2, 3]] isEqualTo ((["ACRE2", "HeadSet"] call CBA_fnc_getKeybind) select 5)) exitWith {
    [] call acre_sys_core_fnc_toggleHeadset;
    true
};

Now, with multiple keybinds and mouse stuff I'm sure this function will have to change it's return values
(maybe return an array of keybinds at the end)
(could even remove func if things have changed too much)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant