Move these globals out of dinput.c and into dinput_joypad_inl.h
This commit is contained in:
parent
b5e0f7edfd
commit
b171f35836
|
@ -51,14 +51,6 @@
|
||||||
#include "../../retroarch.h"
|
#include "../../retroarch.h"
|
||||||
#include "../../verbosity.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. */
|
/* Context has to be global as joypads also ride on this context. */
|
||||||
LPDIRECTINPUT8 g_dinput_ctx;
|
LPDIRECTINPUT8 g_dinput_ctx;
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,14 @@
|
||||||
/* Forward declaration */
|
/* Forward declaration */
|
||||||
void dinput_destroy_context(void);
|
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)
|
static void dinput_joypad_destroy(void)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
Loading…
Reference in New Issue