348 Commits

Author SHA1 Message Date
Maschell
7e32e7038a ButtonComboAPI: Add C API tests to test plugin 2025-02-08 12:35:54 +01:00
Maschell
d5804e20ad ButtonComboAPI: Add missing handle nullptr checks 2025-02-08 12:35:54 +01:00
Maschell
2358e835cb ButtonComboAPI: Update C++ docs to reference C API 2025-02-08 12:35:54 +01:00
Maschell
cdb573b847 ButtonComboAPI: Fix function name of WUPSButtonComboAPI_AddButtonComboPressDownEx, update docs 2025-02-08 12:35:54 +01:00
Maschell
983616af90 Update documentation of button combo API 2025-02-08 12:35:54 +01:00
Maschell
dd84ac5b4b Example plugin: add button combo API usage 2025-02-08 12:35:54 +01:00
Maschell
a5e8d2b269 Update Dockerfiles 2025-02-08 12:35:54 +01:00
Maschell
2c711a1015 Inital implemenation of the button combo test plugin 2025-02-08 12:35:54 +01:00
Maschell
1884e28734 StorageAPI: Use latest Catch2 version in test plugin 2025-02-08 12:35:54 +01:00
Maschell
02282ee0ae Add missing import 2025-02-08 12:35:54 +01:00
Maschell
15b9f0242c ButtonComboAPI: Add Metaoptions class for C++ api to get/update meta options 2025-02-08 12:35:54 +01:00
Maschell
e042b420c5 WUPSButtonAPI: Check the button combo status after potentially updating the combo 2025-02-08 12:35:54 +01:00
Maschell
315fad5b42 ConfigAPI: Clean up 2025-02-08 12:35:54 +01:00
Maschell
ed37f28bd4 ConfigAPI: Check the version of the config api when getting the menu status 2025-02-08 12:35:54 +01:00
Maschell
e4289a172b WUPSConfigItemButtonCombo: Fix displaying the conlict warning 2025-02-08 12:35:54 +01:00
Maschell
23da1e5b1a WUPSConfigItemButtonCombo: Fix abortng button combo detection (hopefully for real) 2025-02-08 12:35:54 +01:00
Maschell
b9808dc955 WUPSConfigItemButtonCombo: Fix displaying the correct hold duration to set a new button combo 2025-02-08 12:35:54 +01:00
Maschell
4377488179 WUPSConfigItemButtonCombo: Only log errors on failure when setting the combo 2025-02-08 12:35:54 +01:00
Maschell
5cbcc77b58 WUPSConfigItemButtonCombo: Fix string representation of additional wiimote buttons 2025-02-08 12:35:54 +01:00
Maschell
e45d51318a WUPSButtonComboAPI: Fix some C++ functions 2025-02-08 12:35:54 +01:00
Maschell
51a5bbd674 WUPSButtonComboAPI: Add support for GetControllerTypeStr 2025-02-08 12:35:54 +01:00
Maschell
08f7741696 ButtonComboAPI: Add missing wiimote buttons 2025-02-08 12:35:54 +01:00
Maschell
bdfe4c37d1 WUPSConfigItemButtonCombo: Fix aborting combo detection 2025-02-08 12:35:54 +01:00
Maschell
ef159c37cc ButtonComboAPI: Move button combo API into it's own namespace 2025-02-08 12:35:54 +01:00
Maschell
8e7dde33af ButtonComboAPI: Add C++ wrapper for button combo api 2025-02-08 12:35:54 +01:00
Maschell
c2a877e3f8 ButtonComboAPI: Added "triggeredBy param to combo callback 2025-02-08 12:35:54 +01:00
Maschell
f173fc65e9 ButtonComboAPI: Split up header into api and defines, move into directory 2025-02-08 12:35:54 +01:00
Maschell
5214252a99 ConfigAPI: release handle in move operator/constructor before overwriting it. 2025-02-08 12:35:54 +01:00
Maschell
d9ce5d71b0 ButtonComboAPI: Hold duration is now measure in ms instead of frames 2025-02-08 12:35:54 +01:00
Maschell
014181fd53 Add additional includes back to config_api.h 2025-02-08 12:35:54 +01:00
Maschell
e5addcb133 example_plugin: Add missing include 2025-02-08 12:35:54 +01:00
Maschell
1a42b79c4d Initial implementation of WUPSButtonComboAPI 2025-02-08 12:35:54 +01:00
Maschell
dd6025a8d1 Revert LTO because it's caused plugins to use LTO unless they specificed "-fno-lto" 2025-02-08 12:35:54 +01:00
Maschell
981a4e9326 Bump plugin version to 0.8.2 2025-02-08 12:35:54 +01:00
Maschell
ac0ef5fcab Fix formatting 2025-02-08 12:35:54 +01:00
Ash
92239fbe30 Enable LTO build (#77)
* fix(Makefile): Don't double up on optimisation flags

This is already provided by BUILD_CFLAGS later on

* feat(common): Mark explicitly-placed things as used

If we put something in a given section, we should be able to expect it to actually turn up in that section!

Doing this will prevent LTO from slurping all the hooks away as "unused".

* feat: Enable LTO

This uses "fat" binaries, so normal builds won't break, but also includes the LTO data for builds that wish to use it
2025-02-08 12:35:54 +01:00
Daniel K. O.
8ddb5c404c Add WUPSConfigAPI_GetMenuOpen() to detect if the config menu is open. (#76)
* Add `WUPSConfigAPI_IsMenuOpen()` to detect if the config menu is open.

* Changed function signature and name to match other functions.

* - Renamed function from `WUPSConfigAPI_GetMenuOpen()` to `WUPSConfigAPI_GetMenuOpen()`.
- Changed result type from `BOOL` to `WUPSConfigAPIMenuStatus` enum.

---------

Co-authored-by: Daniel K. O. (dkosmari) <none@none>
2025-02-08 12:35:54 +01:00
Maschell
74205ee081 Update Dockerfiles 2024-05-05 14:41:06 +02:00
Maschell
e9f5674f62 Bump version to 0.8.1 2024-05-05 14:41:06 +02:00
Maschell
f871b7f228 StorageAPI: Update documentation and fix storage test plugin 2024-05-05 14:41:06 +02:00
Maschell
d9c64bfddd Bump actions/checkout from 3 to 4 2024-05-05 14:41:06 +02:00
Maschell
967f42be43 Config: Update WUPSConfigComplexPadData to hold information for all 7 possible kpads 2024-05-05 14:41:06 +02:00
Maschell
3c26ecd473 Fix DEBUG flag check in example plugin 2024-04-25 13:57:35 +02:00
Maschell
989b129834 Fix move operator for WUPSConfigItem 2024-04-25 13:57:35 +02:00
Maschell
5de93f178a Fix move operator for WUPSConfigCategory 2024-04-25 13:57:35 +02:00
Maschell
6b5c2ab95e StorageAPI: Make sure to call noexcept version of CreateSubItem in GetOrCreateSubItem 2024-04-25 13:57:35 +02:00
Maschell
fe1c4aa671 Fix small typo in storage test 2024-04-25 13:57:35 +02:00
Maschell
284713c9f6 Fix WUPSConfigItemMultipleValues::CreateFromValue 2024-04-25 13:57:35 +02:00
Maschell
c3f5bd8d7b StorageAPI: Add support for loading/storing empty strings/binaries 2024-04-25 13:57:35 +02:00
Maschell
83bb5e9d27 StorageAPI: Avoid -Wunused-parameter 2024-04-25 13:57:35 +02:00