Supports the key event repeat and delay for each way.
The ways have both horizental and vertical way.
This patch is only for tizen platform.
Change-Id: Ie03bef1a321b3d85c051b25101c18212439353fc
*/
DALI_ADAPTOR_API bool GetRepeatInfo(float& rate, float& delay);
+/**
+ * @brief Sets keyboard repeat information of horizontal way.
+ *
+ * @param[in] rate The key repeat rate value in seconds
+ * @param[in] delay The key repeat delay value in seconds
+ * @return true if setting the keyboard repeat succeeds
+ */
+DALI_ADAPTOR_API bool SetHorizontalRepeatInfo(float rate, float delay);
+
+/**
+ * @brief Gets keyboard repeat information of horizontal way.
+ *
+ * @param[in] rate The key repeat rate value in seconds
+ * @param[in] delay The key repeat delay value in seconds
+ * @return true if getting the keyboard repeat succeeds, false otherwise
+ */
+DALI_ADAPTOR_API bool GetHorizontalRepeatInfo(float& rate, float& delay);
+
+/**
+ * @brief Sets keyboard repeat information of vertical way.
+ *
+ * @param[in] rate The key repeat rate value in seconds
+ * @param[in] delay The key repeat delay value in seconds
+ * @return true if setting the keyboard repeat succeeds
+ */
+DALI_ADAPTOR_API bool SetVerticalRepeatInfo(float rate, float delay);
+
+/**
+ * @brief Gets keyboard repeat information of vertical way.
+ *
+ * @param[in] rate The key repeat rate value in seconds
+ * @param[in] delay The key repeat delay value in seconds
+ * @return true if getting the keyboard repeat succeeds, false otherwise
+ */
+DALI_ADAPTOR_API bool GetVerticalRepeatInfo(float& rate, float& delay);
+
} // namespace Keyboard
/**
return Dali::Internal::Adaptor::WindowSystem::GetKeyboardRepeatInfo(rate, delay);
}
+bool SetHorizontalRepeatInfo(float rate, float delay)
+{
+ return Dali::Internal::Adaptor::WindowSystem::SetKeyboardHorizontalRepeatInfo(rate, delay);
+}
+
+bool GetHorizontalRepeatInfo(float& rate, float& delay)
+{
+ return Dali::Internal::Adaptor::WindowSystem::GetKeyboardHorizontalRepeatInfo(rate, delay);
+}
+
+bool SetVerticalRepeatInfo(float rate, float delay)
+{
+ return Dali::Internal::Adaptor::WindowSystem::SetKeyboardVerticalRepeatInfo(rate, delay);
+}
+
+bool GetVerticalRepeatInfo(float& rate, float& delay)
+{
+ return Dali::Internal::Adaptor::WindowSystem::GetKeyboardVerticalRepeatInfo(rate, delay);
+}
+
} // namespace Keyboard
} // namespace Dali
return false;
}
+bool SetKeyboardHorizontalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardHorizontalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
+bool SetKeyboardVerticalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardVerticalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
} // namespace WindowSystem
} // namespace Adaptor
*/
bool GetKeyboardRepeatInfo(float& rate, float& delay);
+/**
+ * @copydoc Dali::Keyboard::SetHorizontalRepeatInfo()
+ */
+bool SetKeyboardHorizontalRepeatInfo(float rate, float delay);
+
+/**
+ * @copydoc Dali::Keyboard::GetHorizontalRepeatInfo()
+ */
+bool GetKeyboardHorizontalRepeatInfo(float& rate, float& delay);
+
+/**
+ * @copydoc Dali::Keyboard::SetVerticalRepeatInfo()
+ */
+bool SetKeyboardVerticalRepeatInfo(float rate, float delay);
+
+/**
+ * @copydoc Dali::Keyboard::GetVerticalRepeatInfo()
+ */
+bool GetKeyboardVerticalRepeatInfo(float& rate, float& delay);
+
} // namespace WindowSystem
/**
return false;
}
+bool SetKeyboardHorizontalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardHorizontalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
+bool SetKeyboardVerticalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardVerticalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
} // namespace Dali::Internal::Adaptor::WindowSystem
return ret;
}
+bool SetKeyboardHorizontalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardHorizontalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
+bool SetKeyboardVerticalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardVerticalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
} // namespace WindowSystem
} // namespace Adaptor
return false;
}
+
+bool SetKeyboardHorizontalRepeatInfo(float rate, float delay)
+{
+ auto frameworkFactory = Dali::Internal::Adaptor::GetFrameworkFactory();
+ if(frameworkFactory == nullptr || (frameworkFactory && frameworkFactory->GetFrameworkBackend() == FrameworkBackend::DEFAULT))
+ {
+ Ecore_Wl2_Input* input = ecore_wl2_input_default_input_get(ecore_wl2_connected_display_get(NULL));
+ return ecore_wl2_input_keyboard_horizontal_way_repeat_set(input, static_cast<double>(rate), static_cast<double>(delay));
+ }
+ return false;
+}
+
+bool GetKeyboardHorizontalRepeatInfo(float& rate, float& delay)
+{
+ auto frameworkFactory = Dali::Internal::Adaptor::GetFrameworkFactory();
+ if(frameworkFactory == nullptr || (frameworkFactory && frameworkFactory->GetFrameworkBackend() == FrameworkBackend::DEFAULT))
+ {
+ Ecore_Wl2_Input* input = ecore_wl2_input_default_input_get(ecore_wl2_connected_display_get(NULL));
+ double rateVal, delayVal;
+ bool ret = ecore_wl2_input_keyboard_horizontal_way_repeat_get(input, &rateVal, &delayVal);
+ rate = static_cast<float>(rateVal);
+ delay = static_cast<float>(delayVal);
+
+ return ret;
+ }
+ return false;
+}
+
+bool SetKeyboardVerticalRepeatInfo(float rate, float delay)
+{
+ auto frameworkFactory = Dali::Internal::Adaptor::GetFrameworkFactory();
+ if(frameworkFactory == nullptr || (frameworkFactory && frameworkFactory->GetFrameworkBackend() == FrameworkBackend::DEFAULT))
+ {
+ Ecore_Wl2_Input* input = ecore_wl2_input_default_input_get(ecore_wl2_connected_display_get(NULL));
+ return ecore_wl2_input_keyboard_vertical_way_repeat_set(input, static_cast<double>(rate), static_cast<double>(delay));
+ }
+ return false;
+}
+
+bool GetKeyboardVerticalRepeatInfo(float& rate, float& delay)
+{
+ auto frameworkFactory = Dali::Internal::Adaptor::GetFrameworkFactory();
+ if(frameworkFactory == nullptr || (frameworkFactory && frameworkFactory->GetFrameworkBackend() == FrameworkBackend::DEFAULT))
+ {
+ Ecore_Wl2_Input* input = ecore_wl2_input_default_input_get(ecore_wl2_connected_display_get(NULL));
+ double rateVal, delayVal;
+ bool ret = ecore_wl2_input_keyboard_vertical_way_repeat_get(input, &rateVal, &delayVal);
+ rate = static_cast<float>(rateVal);
+ delay = static_cast<float>(delayVal);
+
+ return ret;
+ }
+ return false;
+}
+
} // namespace WindowSystem
} // namespace Adaptor
return false;
}
+bool SetKeyboardHorizontalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardHorizontalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
+bool SetKeyboardVerticalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardVerticalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
} // namespace WindowSystem
} // namespace Adaptor
return false;
}
+bool SetKeyboardHorizontalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardHorizontalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
+bool SetKeyboardVerticalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardVerticalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
} // namespace WindowSystem
} // namespace Adaptor
return false;
}
+bool SetKeyboardHorizontalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardHorizontalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
+bool SetKeyboardVerticalRepeatInfo(float rate, float delay)
+{
+ return false;
+}
+
+bool GetKeyboardVerticalRepeatInfo(float& rate, float& delay)
+{
+ return false;
+}
+
} // namespace WindowSystem
} // namespace Adaptor