LuanRoger / xinput_gamepad

🎮 Add support to XInput controllers with Win32 API.
https://pub.dev/packages/xinput_gamepad
MIT License
6 stars 2 forks source link

Combinations support #10

Closed LuanRoger closed 1 year ago

LuanRoger commented 1 year ago

Add support for buttons combinations

Closes #6

Example:

final Controller controller = Controller(index: controllerIndex, buttonMode: ButtonMode.PRESS);
controller.buttonsCombination = {
      { ControllerButton.A_BUTTON, ControllerButton.X_BUTTON }: () =>
          print("Combination")
    };

The combination set can't have repeated buttons.

TODO