fixed compile problem and made changes to initialize memory cards when initializing input devices

This commit is contained in:
Vecais Dumais Laacis
2006-12-07 08:45:18 +00:00
parent 820f71c5f6
commit 8f7ed8f6de
2 changed files with 2 additions and 3 deletions
@@ -38,7 +38,7 @@ InputHandler_Xbox::InputHandler_Xbox()
//
// 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 );
ZeroMemory( joysticks, sizeof(joysticks) );
@@ -7,8 +7,6 @@
#define NUM_PORTS 4
REGISTER_INPUT_HANDLER_CLASS( Xbox );
class InputHandler_Xbox: public InputHandler
{
HANDLE joysticks[NUM_JOYSTICKS];
@@ -24,6 +22,7 @@ private:
void getHandles();
};
#define USE_INPUT_HANDLER_XBOX
REGISTER_INPUT_HANDLER_CLASS( Xbox );
#endif