Use CHECKPOINT and RageThreads.

This commit is contained in:
Glenn Maynard
2003-08-05 01:32:51 +00:00
parent 8ee7dc93a6
commit 32e81d2bbc
10 changed files with 53 additions and 65 deletions
@@ -2,20 +2,20 @@
#define INPUTHANDLER_DIRECTINPUT_H
#include "InputHandler.h"
#include "SDL_Thread.h"
#include "RageThreads.h"
struct DIDevice;
class InputHandler_DInput: public InputHandler
{
SDL_Thread *InputThreadPtr;
RageThread InputThread;
bool shutdown;
void UpdatePolled(DIDevice &device, const RageTimer &tm);
void UpdateBuffered(DIDevice &device, const RageTimer &tm);
void PollAndAcquireDevices();
static int InputThread_Start( void *p ) { ((InputHandler_DInput *) p)->InputThread(); return 0; }
void InputThread();
static int InputThread_Start( void *p ) { ((InputHandler_DInput *) p)->InputThreadMain(); return 0; }
void InputThreadMain();
void StartThread();
void ShutdownThread();