mirror of
https://github.com/libretro/beetle-saturn-libretro.git
synced 2024-11-26 19:00:35 +00:00
31 lines
859 B
C
31 lines
859 B
C
#ifndef __INPUT_H__
|
|
#define __INPUT_H__
|
|
|
|
#include "libretro.h"
|
|
#include "mednafen/state.h"
|
|
|
|
// These input routines tell libretro about Saturn peripherals
|
|
// and map input from the abstract 'retropad' into Saturn land.
|
|
|
|
void input_init_env( retro_environment_t environ_cb );
|
|
|
|
void input_init(void);
|
|
|
|
void input_set_geometry( unsigned width, unsigned height );
|
|
|
|
void input_set_env( retro_environment_t environ_cb );
|
|
|
|
void input_set_deadzone_stick( int percent );
|
|
void input_set_deadzone_trigger( int percent );
|
|
void input_set_mouse_sensitivity( int percent );
|
|
|
|
void input_update( retro_input_state_t input_state_cb);
|
|
void input_update_with_bitmasks( retro_input_state_t input_state_cb );
|
|
|
|
// save state function for input
|
|
int input_StateAction( StateMem* sm, const unsigned load, const bool data_only );
|
|
|
|
void input_multitap( int port, bool enabled );
|
|
|
|
#endif
|