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

add userXX to keybinding menu #828

Merged
merged 11 commits into from
Dec 16, 2017
Merged

add userXX to keybinding menu #828

merged 11 commits into from
Dec 16, 2017

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented Dec 9, 2017

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.

@commy2 commy2 added the Feature label Dec 9, 2017
@commy2
Copy link
Contributor Author

commy2 commented Dec 10, 2017

["Debug Category", "DebugKey", "Debug Key", {
    systemChat str true;
}, {
    systemChat str false;
}, [0, [false, false, false]]] call CBA_fnc_addKeybind;

@@ -9,7 +9,7 @@ Author:
---------------------------------------------------------------------------- */
#include "script_component.hpp"

if (!GVAR(checkUserActions)) exitWith {};
if (GVAR(skipCheckingUserActions)) exitWith {};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, wow.

@commy2 commy2 added this to the 3.5.1 milestone Dec 11, 2017
@commy2 commy2 merged commit dcc2aa0 into master Dec 16, 2017
@commy2 commy2 deleted the useraction-binds branch December 16, 2017 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to bind to Joysticks
4 participants