-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathinput.h
More file actions
49 lines (33 loc) · 1.11 KB
/
input.h
File metadata and controls
49 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef __INPUT_H__
#define __INPUT_H__
#include <boolean.h>
#include <libretro.h>
#include "mednafen/psx/frontio.h"
#ifdef __cplusplus
extern "C" {
#endif
/* 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(void);
extern void input_set_fio( FrontIO* fio );
extern void input_init_calibration(void);
extern void input_enable_calibration( bool enable );
extern void input_set_env( retro_environment_t environ_cb );
extern void input_set_mouse_sensitivity( int percent );
extern void input_set_gun_cursor( int cursor );
extern void input_set_negcon_deadzone( int deadzone );
extern void input_set_negcon_linearity( int linearity );
extern void input_set_player_count( unsigned players );
extern unsigned input_get_player_count(void);
void input_update(bool supports_bitmasks, retro_input_state_t input_state_cb );
enum
{
SETTING_GUN_INPUT_LIGHTGUN,
SETTING_GUN_INPUT_POINTER,
};
extern int gun_input_mode;
#ifdef __cplusplus
}
#endif
#endif