The non windows files.
This commit is contained in:
@@ -110,18 +110,18 @@ void ScreenMapControllers2::Init()
|
|||||||
MAPPING_SCROLLER_TRANSFORM.Load( m_sName, "MappingScrollerTransform" );
|
MAPPING_SCROLLER_TRANSFORM.Load( m_sName, "MappingScrollerTransform" );
|
||||||
MAPPING_SCROLLER_SUBDIVISIONS.Load( m_sName, "MappingScrollerSubdivisions" );
|
MAPPING_SCROLLER_SUBDIVISIONS.Load( m_sName, "MappingScrollerSubdivisions" );
|
||||||
|
|
||||||
FOREACH( PlayerNumber, vpns, p )
|
for (PlayerNumber const &p : vpns)
|
||||||
{
|
{
|
||||||
// mapping scroller
|
// mapping scroller
|
||||||
m_MappingScroller[*p].SetLoop( LOOP_MAPPING_SCROLLER );
|
m_MappingScroller[p].SetLoop( LOOP_MAPPING_SCROLLER );
|
||||||
m_MappingScroller[*p].SetNumItemsToDraw( MAPPING_SCROLLER_NUM_ITEMS_TO_DRAW );
|
m_MappingScroller[p].SetNumItemsToDraw( MAPPING_SCROLLER_NUM_ITEMS_TO_DRAW );
|
||||||
m_MappingScroller[*p].Load2();
|
m_MappingScroller[p].Load2();
|
||||||
m_MappingScroller[*p].SetTransformFromReference( MAPPING_SCROLLER_TRANSFORM );
|
m_MappingScroller[p].SetTransformFromReference( MAPPING_SCROLLER_TRANSFORM );
|
||||||
m_MappingScroller[*p].SetSecondsPerItem( MAPPING_SCROLLER_SECONDS_PER_ITEM );
|
m_MappingScroller[p].SetSecondsPerItem( MAPPING_SCROLLER_SECONDS_PER_ITEM );
|
||||||
m_MappingScroller[*p].SetNumSubdivisions( MAPPING_SCROLLER_SUBDIVISIONS );
|
m_MappingScroller[p].SetNumSubdivisions( MAPPING_SCROLLER_SUBDIVISIONS );
|
||||||
m_MappingScroller[*p].SetName( "MappingScroller"+ssprintf("P%d",(*p)+1) );
|
m_MappingScroller[p].SetName( "MappingScroller"+ssprintf("P%d",p + 1) );
|
||||||
LOAD_ALL_COMMANDS_AND_SET_XY( m_MappingScroller[*p] );
|
LOAD_ALL_COMMANDS_AND_SET_XY( m_MappingScroller[p] );
|
||||||
this->AddChild( &m_MappingScroller[*p] );
|
this->AddChild( &m_MappingScroller[p] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -120,8 +120,8 @@ void InputHandler_MacOSX_HID::StartDevices()
|
|||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
ASSERT( m_LoopRef );
|
ASSERT( m_LoopRef );
|
||||||
FOREACH( HIDDevice *, m_vDevices, i )
|
for (HIDDevice *i : m_vDevices)
|
||||||
(*i)->StartQueue( m_LoopRef, InputHandler_MacOSX_HID::QueueCallback, this, n++ );
|
i->StartQueue( m_LoopRef, InputHandler_MacOSX_HID::QueueCallback, this, n++ );
|
||||||
|
|
||||||
CFRunLoopSourceRef runLoopSource = IONotificationPortGetRunLoopSource( m_NotifyPort );
|
CFRunLoopSourceRef runLoopSource = IONotificationPortGetRunLoopSource( m_NotifyPort );
|
||||||
|
|
||||||
@@ -130,8 +130,8 @@ void InputHandler_MacOSX_HID::StartDevices()
|
|||||||
|
|
||||||
InputHandler_MacOSX_HID::~InputHandler_MacOSX_HID()
|
InputHandler_MacOSX_HID::~InputHandler_MacOSX_HID()
|
||||||
{
|
{
|
||||||
FOREACH( HIDDevice *, m_vDevices, i )
|
for (HIDDevice *i : m_vDevices)
|
||||||
delete *i;
|
delete i;
|
||||||
if( PREFSMAN->m_bThreadedInput )
|
if( PREFSMAN->m_bThreadedInput )
|
||||||
{
|
{
|
||||||
CFRunLoopSourceSignal( m_SourceRef );
|
CFRunLoopSourceSignal( m_SourceRef );
|
||||||
@@ -142,8 +142,8 @@ InputHandler_MacOSX_HID::~InputHandler_MacOSX_HID()
|
|||||||
LOG->Trace( "Input handler thread shut down." );
|
LOG->Trace( "Input handler thread shut down." );
|
||||||
}
|
}
|
||||||
|
|
||||||
FOREACH( io_iterator_t, m_vIters, i )
|
for (io_iterator_t &i : m_vIters)
|
||||||
IOObjectRelease( *i );
|
IOObjectRelease( i );
|
||||||
IONotificationPortDestroy( m_NotifyPort );
|
IONotificationPortDestroy( m_NotifyPort );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ int JoystickDevice::AssignIDs( InputDevice startID )
|
|||||||
{
|
{
|
||||||
if( !IsJoystick(startID) )
|
if( !IsJoystick(startID) )
|
||||||
return -1;
|
return -1;
|
||||||
FOREACH( Joystick, m_vSticks, i )
|
for (auto i = m_vSticks.begin(); i != m_vSticks.end(); ++i)
|
||||||
{
|
{
|
||||||
if( !IsJoystick(startID) )
|
if( !IsJoystick(startID) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user