aboutsummaryrefslogtreecommitdiff
path: root/platform/platform.h
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2022-05-07 23:26:27 +1000
committerNicholas Tay <nick@windblume.net>2022-05-07 23:47:37 +1000
commit047544a5af9100ec269e9222213385bc7794f619 (patch)
tree6a632da957c05fb790fdd63745e99b867c945274 /platform/platform.h
parentecb4cff6f34783fd345419c0069c685793521e80 (diff)
downloadclak-047544a5af9100ec269e9222213385bc7794f619.tar.gz
clak-047544a5af9100ec269e9222213385bc7794f619.tar.bz2
clak-047544a5af9100ec269e9222213385bc7794f619.zip
Split out platform-specific code for Windows
Not sure if I'm really doing it in the best way possible. Feels a bit weird that some place assumes the existence of other functions.
Diffstat (limited to '')
-rw-r--r--platform/platform.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/platform.h b/platform/platform.h
new file mode 100644
index 0000000..da1efa6
--- /dev/null
+++ b/platform/platform.h
@@ -0,0 +1,10 @@
+#ifndef CLAK_PLATFORM_H_
+#define CLAK_PLATFORM_H_
+
+bool sound_init(float volume);
+void sound_play(unsigned char *buffer);
+void keyboard_unhook(void);
+bool keyboard_hook(void);
+void enter_idle(void);
+
+#endif /* CLAK_PLATFORM_H_ */ \ No newline at end of file