The non windows files.

This commit is contained in:
Jason Felds
2013-05-01 23:45:12 -04:00
parent 02d16ce574
commit b1ed735622
3 changed files with 539 additions and 539 deletions
File diff suppressed because it is too large Load Diff
@@ -120,8 +120,8 @@ void InputHandler_MacOSX_HID::StartDevices()
int n = 0;
ASSERT( m_LoopRef );
FOREACH( HIDDevice *, m_vDevices, i )
(*i)->StartQueue( m_LoopRef, InputHandler_MacOSX_HID::QueueCallback, this, n++ );
for (HIDDevice *i : m_vDevices)
i->StartQueue( m_LoopRef, InputHandler_MacOSX_HID::QueueCallback, this, n++ );
CFRunLoopSourceRef runLoopSource = IONotificationPortGetRunLoopSource( m_NotifyPort );
@@ -130,8 +130,8 @@ void InputHandler_MacOSX_HID::StartDevices()
InputHandler_MacOSX_HID::~InputHandler_MacOSX_HID()
{
FOREACH( HIDDevice *, m_vDevices, i )
delete *i;
for (HIDDevice *i : m_vDevices)
delete i;
if( PREFSMAN->m_bThreadedInput )
{
CFRunLoopSourceSignal( m_SourceRef );
@@ -142,8 +142,8 @@ InputHandler_MacOSX_HID::~InputHandler_MacOSX_HID()
LOG->Trace( "Input handler thread shut down." );
}
FOREACH( io_iterator_t, m_vIters, i )
IOObjectRelease( *i );
for (io_iterator_t &i : m_vIters)
IOObjectRelease( i );
IONotificationPortDestroy( m_NotifyPort );
}
+1 -1
View File
@@ -248,7 +248,7 @@ int JoystickDevice::AssignIDs( InputDevice startID )
{
if( !IsJoystick(startID) )
return -1;
FOREACH( Joystick, m_vSticks, i )
for (auto i = m_vSticks.begin(); i != m_vSticks.end(); ++i)
{
if( !IsJoystick(startID) )
{