forked from libretro-mirrors/beetle-saturn-libretro
-
Notifications
You must be signed in to change notification settings - Fork 1
/
input.h
29 lines (18 loc) · 855 Bytes
/
input.h
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
#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.
extern void input_init_env( retro_environment_t environ_cb );
extern void input_init();
extern void input_set_geometry( unsigned width, unsigned height );
extern void input_set_env( retro_environment_t environ_cb );
extern void input_set_deadzone_stick( int percent );
extern void input_set_deadzone_trigger( int percent );
extern void input_set_mouse_sensitivity( int percent );
extern void input_update( retro_input_state_t input_state_cb );
// save state function for input
extern int input_StateAction( StateMem* sm, const unsigned load, const bool data_only );
extern void input_multitap( int port, bool enabled );
#endif