16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 22:09:19 +02:00

Add Discord RPC integration

This commit is contained in:
2025-02-24 22:30:35 +01:00
parent c986b60895
commit c7b40ca7ae
2 changed files with 60 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ http://mozilla.org/MPL/2.0/.
#include "light.h"
#include "utilities.h"
#include "motiontelemetry.h"
#include "ref/discord-rpc/include/discord_rpc.h"
#ifdef WITH_UART
#include "uart.h"
#endif
@@ -23,10 +24,17 @@ http://mozilla.org/MPL/2.0/.
#include "zmq_input.h"
#endif
struct DiscordData
{
DiscordRichPresence dcRcp;
char *scnName = "";
};
struct global_settings {
// members
// data items
// TODO: take these out of the settings
DiscordData dcData;
bool shiftState{ false }; //m7todo: brzydko
bool ctrlState{ false };
bool altState{ false };