- Implement |EflScreen::GetCursorScreenPoint|
Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-2366
Signed-off-by: Kajetan Brzuszczak <k.brzuszczak@partner.samsung.com>
Change-Id: Icc9f9b5233d8de05677ebf0cca3a30cbeec700a1
}
gfx::Point EflScreen::GetCursorScreenPoint() const {
- NOTIMPLEMENTED();
+#if defined(USE_WAYLAND)
+ int x, y;
+ Ecore_Wl2_Input* input = ecore_wl2_display_input_find_by_name(
+ ecore_wl2_connected_display_get(NULL), "default");
+ if (input) {
+ ecore_wl2_input_pointer_xy_get(input, &x, &y);
+ return gfx::Point(x, y);
+ }
+#endif
+
return {};
}