-
Notifications
You must be signed in to change notification settings - Fork 149
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
add userXX to keybinding menu #828
Conversation
* Don't check inputAction if we have none bound * check all keys instead of counting them
["Debug Category", "DebugKey", "Debug Key", {
systemChat str true;
}, {
systemChat str false;
}, [0, [false, false, false]]] call CBA_fnc_addKeybind; |
0.0001 ms faster!
addons/events/fnc_userKeyHandler.sqf
Outdated
@@ -9,7 +9,7 @@ Author: | |||
---------------------------------------------------------------------------- */ | |||
#include "script_component.hpp" | |||
|
|||
if (!GVAR(checkUserActions)) exitWith {}; | |||
if (GVAR(skipCheckingUserActions)) exitWith {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonpas Check the commit info. Can't comment on commits anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, wow.
Documentation:
https://github.com/CBATeam/CBA_A3/wiki/Bind-Addon-Key-Actions-to-Joystick-Buttons
This would kind of allow joystick buttons to be usable with CBA keybinding.
The idea is to poll the
inputAction
state of all 20 "User Action" keys and to trigger our scripted keyhandler event with special "dik codes" when they change. The special "dik codes" are then also added to the drag and drop part of the keybinding menu.