From 5270088f730a7e30155a642dcd5c4e9a80055d7a Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Sun, 8 May 2022 01:35:55 +1000 Subject: More messing around with plugin system Just more attempts, but I think I'm gonna switch over to dynamic .so/.dll loading. That would be pretty fun to check out. --- board/simple.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 board/simple.h (limited to 'board/simple.h') diff --git a/board/simple.h b/board/simple.h new file mode 100644 index 0000000..c2b211b --- /dev/null +++ b/board/simple.h @@ -0,0 +1,9 @@ +#ifndef CLAK_SIMPLE_H_ +#define CLAK_SIMPLE_H_ + +extern void sound_play(unsigned char *buffer); +#define SIMPLE_BOARD(name) \ + void name ## _on_down(void) { sound_play( name ## _board_down_wav ); } \ + void name ## _on_up(void) { sound_play( name ## _board_down_wav ); } + +#endif /* CLAK_SIMPLE_H_ */ \ No newline at end of file -- cgit