This commit is contained in:
twinaphex 2020-07-31 19:30:03 +02:00
parent 449f8dff8e
commit 8ab1d7f8ec
3 changed files with 12 additions and 5 deletions

View File

@ -39,9 +39,11 @@
#include "../../verbosity.h"
#include "dinput_joypad.h"
/* TODO/FIXME - globals */
struct dinput_joypad_data g_pads[MAX_USERS];
unsigned g_joypad_cnt;
/* TODO/FIXME - static globals */
static struct dinput_joypad_data g_pads[MAX_USERS];
static unsigned g_joypad_cnt;
static unsigned g_last_xinput_pad_idx;
/* Forward declarations */

View File

@ -36,10 +36,11 @@
#include "../../verbosity.h"
#include "dinput_joypad.h"
/* TODO/FIXME - static globals */
static struct dinput_joypad_data g_pads[MAX_USERS];
static unsigned g_joypad_cnt;
/* TODO/FIXME - globals */
struct dinput_joypad_data g_pads[MAX_USERS];
unsigned g_joypad_cnt;
/* TODO/FIXME - forward declaration */
extern LPDIRECTINPUT8 g_dinput_ctx;
#include "dinput_joypad_inl.h"

View File

@ -23,6 +23,10 @@
#include <retro_common_api.h>
/* Forward declaration */
extern struct dinput_joypad_data g_pads[MAX_USERS];
extern unsigned g_joypad_cnt;
/* Function prototype forward declarations */
void dinput_destroy_context(void);
bool dinput_init_context(void);