1 #ifndef __INPUT_H__
2 #define __INPUT_H__
3 
4 #include <boolean.h>
5 #include <libretro.h>
6 #include "mednafen/psx/frontio.h"
7 
8 // These input routines tell libretro about PlayStation peripherals
9 // and map input from the abstract 'retropad' into PlayStation land.
10 
11 extern void input_init_env( retro_environment_t environ_cb );
12 
13 extern void input_init();
14 
15 extern void input_set_fio( FrontIO* fio );
16 
17 extern void input_init_calibration();
18 extern void input_enable_calibration( bool enable );
19 
20 extern void input_set_env( retro_environment_t environ_cb );
21 
22 extern void input_set_mouse_sensitivity( int percent );
23 extern void input_set_gun_cursor( int cursor );
24 
25 extern void input_set_negcon_deadzone( int deadzone );
26 extern void input_set_negcon_linearity( int linearity );
27 
28 extern void input_set_player_count( unsigned players );
29 
30 extern unsigned input_get_player_count();
31 
32 void input_update(bool supports_bitmasks, retro_input_state_t input_state_cb );
33 
34 enum
35 {
36    SETTING_GUN_INPUT_LIGHTGUN,
37    SETTING_GUN_INPUT_POINTER,
38 };
39 extern int gun_input_mode;
40 
41 #endif
42