Create JoystickDevices for HID game pads (untested).

This commit is contained in:
Steve Checkoway
2006-02-10 08:50:24 +00:00
parent bb9848adcc
commit 4199cbc9c0
2 changed files with 66 additions and 75 deletions
@@ -12,12 +12,12 @@ class HIDDevice;
class InputHandler_Carbon : public InputHandler
{
private:
std::vector<HIDDevice *> m_vDevices;
vector<HIDDevice *> m_vDevices;
RageThread m_InputThread;
RageSemaphore m_Sem;
CFRunLoopRef m_LoopRef;
CFRunLoopSourceRef m_SourceRef;
std::vector<io_iterator_t> m_vIters; // We don't really care about these but they need to stick around
vector<io_iterator_t> m_vIters; // We don't really care about these but they need to stick around
IONotificationPortRef m_NotifyPort;
RageMutex m_ChangeLock;
bool m_bChanged;
@@ -26,6 +26,7 @@ private:
static void DeviceAdded( void *refCon, io_iterator_t iter );
static void DeviceChanged( void *refCon, io_service_t service, natural_t messageType, void *arg );
void StartDevices();
void AddDevices( int usage, InputDevice &id );
public:
InputHandler_Carbon();