Move these globals out of dinput.c and into dinput_joypad_inl.h

This commit is contained in:
twinaphex 2020-07-31 19:08:46 +02:00
parent b5e0f7edfd
commit b171f35836
2 changed files with 8 additions and 8 deletions

View File

@ -51,14 +51,6 @@
#include "../../retroarch.h"
#include "../../verbosity.h"
/* Keep track of which pad indexes are 360 controllers.
* Not static, will be read in xinput_joypad.c
* -1 = not xbox pad, otherwise 0..3
*/
int g_xinput_pad_indexes[MAX_USERS];
bool g_xinput_block_pads;
/* Context has to be global as joypads also ride on this context. */
LPDIRECTINPUT8 g_dinput_ctx;

View File

@ -25,6 +25,14 @@
/* Forward declaration */
void dinput_destroy_context(void);
/* Keep track of which pad indexes are 360 controllers.
* Not static, will be read in xinput_joypad.c
* -1 = not xbox pad, otherwise 0..3
*/
int g_xinput_pad_indexes[MAX_USERS];
bool g_xinput_block_pads;
static void dinput_joypad_destroy(void)
{
unsigned i;