Fix threaded input not actually running in the created thread. Allow nonthreaded input (by using the gui--i.e. main event loop--thread) according to PREFSMAN->m_bThreadedInput.

This commit is contained in:
Steve Checkoway
2005-12-27 05:55:06 +00:00
parent 7a76b58bd3
commit 2301565b2a
2 changed files with 48 additions and 31 deletions
@@ -2,6 +2,7 @@
#define JOYSTICK_H
#include <vector>
#include <CoreFoundation/CoreFoundation.h>
#include "InputHandler.h"
#include "RageThreads.h"
@@ -14,9 +15,10 @@ private:
std::vector<Device *> mDevices;
RageThread mInputThread;
RageSemaphore mSem;
void *mLoopRef;
CFRunLoopRef mLoopRef;
static int Run(void *data);
static int Run( void *data );
void StartDevices();
public:
InputHandler_Carbon();