2017-11-19 10:45:16 +00:00
|
|
|
#ifndef __INPUT_H__
|
|
|
|
#define __INPUT_H__
|
|
|
|
|
2019-07-07 07:23:53 +00:00
|
|
|
#include <boolean.h>
|
|
|
|
#include <libretro.h>
|
2017-11-19 10:45:16 +00:00
|
|
|
#include "mednafen/psx/frontio.h"
|
|
|
|
|
|
|
|
// These input routines tell libretro about PlayStation peripherals
|
|
|
|
// and map input from the abstract 'retropad' into PlayStation land.
|
|
|
|
|
|
|
|
extern void input_init_env( retro_environment_t environ_cb );
|
|
|
|
|
|
|
|
extern void input_init();
|
|
|
|
|
|
|
|
extern void input_set_fio( FrontIO* fio );
|
|
|
|
|
|
|
|
extern void input_init_calibration();
|
|
|
|
extern void input_enable_calibration( bool enable );
|
|
|
|
|
|
|
|
extern void input_set_env( retro_environment_t environ_cb );
|
|
|
|
|
2017-11-22 23:53:59 +00:00
|
|
|
extern void input_set_mouse_sensitivity( int percent );
|
2017-11-23 13:08:26 +00:00
|
|
|
extern void input_set_gun_cursor( int cursor );
|
2017-11-19 23:57:20 +00:00
|
|
|
|
2018-08-21 16:07:54 +00:00
|
|
|
extern void input_set_negcon_deadzone( int deadzone );
|
|
|
|
extern void input_set_negcon_linearity( int linearity );
|
|
|
|
|
2017-11-19 10:45:16 +00:00
|
|
|
extern void input_set_player_count( unsigned players );
|
|
|
|
|
|
|
|
extern unsigned input_get_player_count();
|
|
|
|
|
2019-07-07 07:23:53 +00:00
|
|
|
void input_update(bool supports_bitmasks, retro_input_state_t input_state_cb );
|
2017-11-19 10:45:16 +00:00
|
|
|
|
2019-07-04 18:33:24 +00:00
|
|
|
enum
|
|
|
|
{
|
2019-11-17 21:56:24 +00:00
|
|
|
SETTING_GUN_INPUT_LIGHTGUN,
|
|
|
|
SETTING_GUN_INPUT_POINTER,
|
2019-07-04 18:33:24 +00:00
|
|
|
};
|
|
|
|
extern int gun_input_mode;
|
|
|
|
|
2017-11-19 10:45:16 +00:00
|
|
|
#endif
|