diff options
author | jdgleaver | 2021-05-17 13:02:41 +0100 |
---|---|---|
committer | jdgleaver | 2021-05-17 13:02:41 +0100 |
commit | d0b35e939c1d63c9168c5e3cc64bcab8bfdd2c6b (patch) | |
tree | 5ddf2de0085870be0bbc39fce8d48d87332d2885 /input.h | |
parent | aafde6de7b2a28c1684c0e9fa62fee9a2a5398dd (diff) | |
download | picogpsp-d0b35e939c1d63c9168c5e3cc64bcab8bfdd2c6b.tar.gz picogpsp-d0b35e939c1d63c9168c5e3cc64bcab8bfdd2c6b.tar.bz2 picogpsp-d0b35e939c1d63c9168c5e3cc64bcab8bfdd2c6b.zip |
Add turbo A/B buttons
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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); |