mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed compile errors in SensorImpl.mm and with EGL stuff on iOS
This commit is contained in:
parent
80431deef4
commit
03acb2ad9f
@ -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)
|
||||
|
@ -96,13 +96,6 @@ public :
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
JoystickState update();
|
||||
|
||||
private :
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Member data
|
||||
////////////////////////////////////////////////////////////
|
||||
int m_index; ///< Index of the joystick
|
||||
};
|
||||
|
||||
} // namespace priv
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user