summaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
authorjdgleaver2021-05-17 13:02:41 +0100
committerjdgleaver2021-05-17 13:02:41 +0100
commitd0b35e939c1d63c9168c5e3cc64bcab8bfdd2c6b (patch)
tree5ddf2de0085870be0bbc39fce8d48d87332d2885 /input.h
parentaafde6de7b2a28c1684c0e9fa62fee9a2a5398dd (diff)
downloadpicogpsp-d0b35e939c1d63c9168c5e3cc64bcab8bfdd2c6b.tar.gz
picogpsp-d0b35e939c1d63c9168c5e3cc64bcab8bfdd2c6b.tar.bz2
picogpsp-d0b35e939c1d63c9168c5e3cc64bcab8bfdd2c6b.zip
Add turbo A/B buttons
Diffstat (limited to 'input.h')
-rw-r--r--input.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/input.h b/input.h
index 90fc930..72c7e1e 100644
--- a/input.h
+++ b/input.h
@@ -61,6 +61,18 @@ extern bool libretro_supports_ff_override;
extern bool libretro_ff_enabled;
extern bool libretro_ff_enabled_prev;
+/* Minimum (and default) turbo pulse train
+ * is 2 frames ON, 2 frames OFF */
+#define TURBO_PERIOD_MIN 4
+#define TURBO_PERIOD_MAX 120
+#define TURBO_PULSE_WIDTH_MIN 2
+#define TURBO_PULSE_WIDTH_MAX 15
+
+extern unsigned turbo_period;
+extern unsigned turbo_pulse_width;
+extern unsigned turbo_a_counter;
+extern unsigned turbo_b_counter;
+
void init_input(void);
u32 update_input(void);
void input_write_savestate(void);