fixed compile problem and made changes to initialize memory cards when initializing input devices
This commit is contained in:
@@ -38,7 +38,7 @@ InputHandler_Xbox::InputHandler_Xbox()
|
|||||||
//
|
//
|
||||||
// Init joysticks
|
// Init joysticks
|
||||||
//
|
//
|
||||||
XDEVICE_PREALLOC_TYPE xdpt[] = {{XDEVICE_TYPE_GAMEPAD, 4}};
|
XDEVICE_PREALLOC_TYPE xdpt[] = {{XDEVICE_TYPE_GAMEPAD, 4}, {XDEVICE_TYPE_MEMORY_UNIT, 2}};
|
||||||
XInitDevices( sizeof(xdpt) / sizeof(XDEVICE_PREALLOC_TYPE), xdpt );
|
XInitDevices( sizeof(xdpt) / sizeof(XDEVICE_PREALLOC_TYPE), xdpt );
|
||||||
ZeroMemory( joysticks, sizeof(joysticks) );
|
ZeroMemory( joysticks, sizeof(joysticks) );
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
#define NUM_PORTS 4
|
#define NUM_PORTS 4
|
||||||
|
|
||||||
REGISTER_INPUT_HANDLER_CLASS( Xbox );
|
|
||||||
|
|
||||||
class InputHandler_Xbox: public InputHandler
|
class InputHandler_Xbox: public InputHandler
|
||||||
{
|
{
|
||||||
HANDLE joysticks[NUM_JOYSTICKS];
|
HANDLE joysticks[NUM_JOYSTICKS];
|
||||||
@@ -24,6 +22,7 @@ private:
|
|||||||
void getHandles();
|
void getHandles();
|
||||||
};
|
};
|
||||||
#define USE_INPUT_HANDLER_XBOX
|
#define USE_INPUT_HANDLER_XBOX
|
||||||
|
REGISTER_INPUT_HANDLER_CLASS( Xbox );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user