Fixed compile errors in SensorImpl.mm and with EGL stuff on iOS

This commit is contained in:
Laurent 2014-04-07 23:28:22 +02:00 committed by Jonathan De Wachter
parent 80431deef4
commit 03acb2ad9f
3 changed files with 15 additions and 21 deletions

View File

@ -40,7 +40,7 @@ set(SRC
${SRCROOT}/WindowImpl.hpp
${INCROOT}/WindowStyle.hpp
)
if(SFML_OPENGL_ES)
if(SFML_OPENGL_ES AND NOT SFML_OS_IOS)
list(APPEND SRC ${SRCROOT}/EGLCheck.cpp)
list(APPEND SRC ${SRCROOT}/EGLCheck.hpp)
list(APPEND SRC ${SRCROOT}/EglContext.cpp)

View File

@ -96,13 +96,6 @@ public :
///
////////////////////////////////////////////////////////////
JoystickState update();
private :
////////////////////////////////////////////////////////////
// Member data
////////////////////////////////////////////////////////////
int m_index; ///< Index of the joystick
};
} // namespace priv

View File

@ -26,6 +26,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Window/SensorImpl.hpp>
#include <SFML/Window/iOS/SFAppDelegate.hpp>
namespace
@ -186,7 +187,7 @@ void SensorImpl::setEnabled(bool enabled)
if (enabled == m_enabled)
return;
switch (index)
switch (m_sensor)
{
case Sensor::Accelerometer:
if (enabled)