Window focus: Added empty implementations for Android and iOS

This commit is contained in:
Jan Haller 2014-05-13 16:18:14 +02:00
parent 4155b2e449
commit 93d2789f70
4 changed files with 60 additions and 0 deletions

View File

@ -181,6 +181,21 @@ void WindowImplAndroid::setKeyRepeatEnabled(bool enabled)
} }
////////////////////////////////////////////////////////////
void WindowImplAndroid::requestFocus()
{
// Not applicable
}
////////////////////////////////////////////////////////////
bool WindowImplAndroid::hasFocus() const
{
// Not applicable
return false;
}
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void WindowImplAndroid::forwardEvent(const Event& event) void WindowImplAndroid::forwardEvent(const Event& event)
{ {

View File

@ -154,6 +154,21 @@ public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setKeyRepeatEnabled(bool enabled); virtual void setKeyRepeatEnabled(bool enabled);
////////////////////////////////////////////////////////////
/// \brief Request the current window to be made the active
/// foreground window
///
////////////////////////////////////////////////////////////
virtual void requestFocus();
////////////////////////////////////////////////////////////
/// \brief Check whether the window has the input focus
///
/// \return True if window has focus, false otherwise
///
////////////////////////////////////////////////////////////
virtual bool hasFocus() const;
static void forwardEvent(const Event& event); static void forwardEvent(const Event& event);
static WindowImplAndroid* singleInstance; static WindowImplAndroid* singleInstance;

View File

@ -157,6 +157,21 @@ public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setKeyRepeatEnabled(bool enabled); virtual void setKeyRepeatEnabled(bool enabled);
////////////////////////////////////////////////////////////
/// \brief Request the current window to be made the active
/// foreground window
///
////////////////////////////////////////////////////////////
virtual void requestFocus();
////////////////////////////////////////////////////////////
/// \brief Check whether the window has the input focus
///
/// \return True if window has focus, false otherwise
///
////////////////////////////////////////////////////////////
virtual bool hasFocus() const;
public: public:
using WindowImpl::pushEvent; using WindowImpl::pushEvent;

View File

@ -170,6 +170,21 @@ void WindowImplUIKit::setKeyRepeatEnabled(bool enabled)
} }
////////////////////////////////////////////////////////////
void WindowImplUIKit::requestFocus()
{
// Not applicable
}
////////////////////////////////////////////////////////////
bool WindowImplUIKit::hasFocus() const
{
// Not applicable
return false;
}
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SFView* WindowImplUIKit::getGlView() const SFView* WindowImplUIKit::getGlView() const
{ {