Update other arches. Not tested.
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
int __stdcall AfxMessageBox(LPCTSTR lpszText, UINT nType, UINT nIDHelp);
|
int __stdcall AfxMessageBox(LPCTSTR lpszText, UINT nType, UINT nIDHelp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
REGISTER_DIALOG_DRIVER_CLASS( Win32 );
|
||||||
|
|
||||||
static bool g_bHush;
|
static bool g_bHush;
|
||||||
static RString g_sMessage;
|
static RString g_sMessage;
|
||||||
static bool g_bAllowHush;
|
static bool g_bAllowHush;
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ public:
|
|||||||
Dialog::Result AbortRetryIgnore( RString sMessage, RString sID );
|
Dialog::Result AbortRetryIgnore( RString sMessage, RString sID );
|
||||||
Dialog::Result AbortRetry( RString sMessage, RString sID );
|
Dialog::Result AbortRetry( RString sMessage, RString sID );
|
||||||
};
|
};
|
||||||
#define USE_DIALOG_DRIVER_WIN32
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
#include "InputHandler_DirectInputHelper.h"
|
#include "InputHandler_DirectInputHelper.h"
|
||||||
|
|
||||||
|
REGISTER_INPUT_HANDLER_CLASS( DirectInput );
|
||||||
|
|
||||||
static vector<DIDevice> Devices;
|
static vector<DIDevice> Devices;
|
||||||
|
|
||||||
/* Number of joysticks found: */
|
/* Number of joysticks found: */
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ private:
|
|||||||
void StartThread();
|
void StartThread();
|
||||||
void ShutdownThread();
|
void ShutdownThread();
|
||||||
};
|
};
|
||||||
#define USE_INPUT_HANDLER_DIRECTINPUT
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
|
REGISTER_INPUT_HANDLER_CLASS2( Joystick, InputHandler_Linux_Joystick );
|
||||||
|
|
||||||
static const char *Paths[InputHandler_Linux_Joystick::NUM_JOYSTICKS] =
|
static const char *Paths[InputHandler_Linux_Joystick::NUM_JOYSTICKS] =
|
||||||
{
|
{
|
||||||
"/dev/js0",
|
"/dev/js0",
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ private:
|
|||||||
RageThread m_InputThread;
|
RageThread m_InputThread;
|
||||||
bool m_bShutdown;
|
bool m_bShutdown;
|
||||||
};
|
};
|
||||||
#define USE_INPUT_HANDLER_LINUX_JOYSTICK
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
#include <linux/keyboard.h>
|
#include <linux/keyboard.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
|
REGISTER_INPUT_HANDLER_CLASS2( tty, InputHandler_Linux_tty );
|
||||||
|
|
||||||
/* Map from keys (ignoring shifts) to SDLK values. */
|
/* Map from keys (ignoring shifts) to SDLK values. */
|
||||||
static int keys[NR_KEYS];
|
static int keys[NR_KEYS];
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ public:
|
|||||||
~InputHandler_Linux_tty();
|
~InputHandler_Linux_tty();
|
||||||
void GetDevicesAndDescriptions( vector<InputDeviceInfo>& vDevicesOut );
|
void GetDevicesAndDescriptions( vector<InputDeviceInfo>& vDevicesOut );
|
||||||
};
|
};
|
||||||
#define USE_INPUT_HANDLER_LINUX_TTY
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#pragma comment (lib,"winmm.lib")
|
#pragma comment (lib,"winmm.lib")
|
||||||
|
|
||||||
|
REGISTER_INPUT_HANDLER_CLASS2( MIDI, InputHandler_Win32_MIDI );
|
||||||
|
|
||||||
static HMIDIIN g_device;
|
static HMIDIIN g_device;
|
||||||
static void CALLBACK midiCallback(HMIDIIN g_device, UINT status, DWORD instancePtr, DWORD data, DWORD timestamp);
|
static void CALLBACK midiCallback(HMIDIIN g_device, UINT status, DWORD instancePtr, DWORD data, DWORD timestamp);
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
bool m_bFoundDevice;
|
bool m_bFoundDevice;
|
||||||
};
|
};
|
||||||
#define USE_INPUT_HANDLER_WIN32_MIDI
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ extern "C" {
|
|||||||
#include "archutils/Win32/ddk/hidsdi.h"
|
#include "archutils/Win32/ddk/hidsdi.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
REGISTER_INPUT_HANDLER_CLASS( Para, InputHandler_Win32_Para );
|
||||||
|
|
||||||
static void InitHack( HANDLE h )
|
static void InitHack( HANDLE h )
|
||||||
{
|
{
|
||||||
UCHAR hack[] = {0, 1};
|
UCHAR hack[] = {0, 1};
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ public:
|
|||||||
InputHandler_Win32_Para();
|
InputHandler_Win32_Para();
|
||||||
void GetDevicesAndDescriptions( vector<InputDeviceInfo>& vDevicesOut );
|
void GetDevicesAndDescriptions( vector<InputDeviceInfo>& vDevicesOut );
|
||||||
};
|
};
|
||||||
#define USE_INPUT_HANDLER_WIN32_PARA
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
#include "archutils/Win32/ErrorStrings.h"
|
#include "archutils/Win32/ErrorStrings.h"
|
||||||
#include "archutils/Win32/USB.h"
|
#include "archutils/Win32/USB.h"
|
||||||
|
|
||||||
|
REGISTER_INPUT_HANDLER_CLASS2( Pump, InputHandler_Win32_Pump );
|
||||||
|
|
||||||
InputHandler_Win32_Pump::InputHandler_Win32_Pump()
|
InputHandler_Win32_Pump::InputHandler_Win32_Pump()
|
||||||
{
|
{
|
||||||
m_bShutdown = false;
|
m_bShutdown = false;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ private:
|
|||||||
void InputThreadMain();
|
void InputThreadMain();
|
||||||
void HandleInput( int devno, int event );
|
void HandleInput( int devno, int event );
|
||||||
};
|
};
|
||||||
#define USE_INPUT_HANDLER_WIN32_PUMP
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
|
|
||||||
|
REGISTER_INPUT_HANDLER_CLASS( X11 );
|
||||||
|
|
||||||
static DeviceButton XSymToDeviceButton( int key )
|
static DeviceButton XSymToDeviceButton( int key )
|
||||||
{
|
{
|
||||||
#define KEY_INV DeviceButton_Invalid
|
#define KEY_INV DeviceButton_Invalid
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ public:
|
|||||||
void Update();
|
void Update();
|
||||||
void GetDevicesAndDescriptions( vector<InputDeviceInfo>& vDevicesOut );
|
void GetDevicesAndDescriptions( vector<InputDeviceInfo>& vDevicesOut );
|
||||||
};
|
};
|
||||||
#define USE_INPUT_HANDLER_X11
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
#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];
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
#pragma comment(lib, "vfw32.lib")
|
#pragma comment(lib, "vfw32.lib")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
REGISTER_MOVIE_TEXTURE_CLASS( DShow );
|
||||||
|
|
||||||
static RString FourCCToString( int fcc )
|
static RString FourCCToString( int fcc )
|
||||||
{
|
{
|
||||||
char c[4];
|
char c[4];
|
||||||
|
|||||||
@@ -70,7 +70,6 @@ private:
|
|||||||
bool m_bLoop;
|
bool m_bLoop;
|
||||||
bool m_bPlaying;
|
bool m_bPlaying;
|
||||||
};
|
};
|
||||||
#define USE_MOVIE_TEXTURE_DSHOW
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user