From 6a1e6a7d6b6a3d987f2fccb3c06f4f5da071f504 Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Tue, 10 May 2022 00:40:10 +1000 Subject: Dynamic load boards as DLL (windows only for now) The .h files are pretty weird, should look at other C projects to see how they load plugins. This function pointer business with typedefs is kinda weird, not sure where they should live. --- board/mxblue/board.c | 12 ++++++++++++ board/mxblue/board.h | 3 --- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 board/mxblue/board.c delete mode 100644 board/mxblue/board.h (limited to 'board/mxblue') diff --git a/board/mxblue/board.c b/board/mxblue/board.c new file mode 100644 index 0000000..14277db --- /dev/null +++ b/board/mxblue/board.c @@ -0,0 +1,12 @@ +#include "sound.h" + +#include "../board.c" + +void board_on_down(void) +{ + sound_play(mxblue_board_down_wav); +} + +void board_on_up(void) +{ +} \ No newline at end of file diff --git a/board/mxblue/board.h b/board/mxblue/board.h deleted file mode 100644 index 7d17f3f..0000000 --- a/board/mxblue/board.h +++ /dev/null @@ -1,3 +0,0 @@ -#include "./sound.h" -#include "../simple.h" -SIMPLE_BOARD(mxblue) \ No newline at end of file -- cgit