aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfinput/externals.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dfinput/externals.h')
-rw-r--r--plugins/dfinput/externals.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/dfinput/externals.h b/plugins/dfinput/externals.h
new file mode 100644
index 0000000..5419977
--- /dev/null
+++ b/plugins/dfinput/externals.h
@@ -0,0 +1,14 @@
+
+void dfinput_activate(void);
+
+/* get gunstate from emu frontend,
+ * xn, yn - layer position normalized to 0..1023 */
+#define GUNIN_TRIGGER (1<<0)
+#define GUNIN_BTNA (1<<1)
+#define GUNIN_BTNB (1<<2)
+#define GUNIN_TRIGGER2 (1<<3) /* offscreen trigger */
+extern void pl_update_gun(int *xn, int *yn, int *xres, int *yres, int *in);
+
+/* vibration trigger to frontend */
+extern int in_enable_vibration;
+extern void plat_trigger_vibrate(int is_strong);