4 * Copyright (C) 2005-2013 Team XBMC
7 * This Program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * This Program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with XBMC; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
22 #include <boost/scoped_ptr.hpp>
24 #include "CursorManager.h"
27 #include "PointerProcessor.h"
29 #include "KeyboardProcessor.h"
31 class IDllWaylandClient;
41 /* InputFactory is effectively just a manager class that encapsulates
42 * all input related information and ties together a wayland seat with
43 * the rest of the XBMC input handling subsystem. It is an internal
44 * class just for tying together these two ends. */
46 public wayland::IInputReceiver,
51 InputFactory(IDllWaylandClient &clientLibrary,
52 IDllXKBCommon &xkbCommonLibrary,
54 IEventListener &dispatch,
55 ITimeoutManager &timeouts);
57 void SetXBMCSurface(struct wl_surface *s);
61 void SetCursor(uint32_t serial,
62 struct wl_surface *surface,
66 bool InsertPointer(struct wl_pointer *);
67 bool InsertKeyboard(struct wl_keyboard *);
70 void RemoveKeyboard();
72 IDllWaylandClient &m_clientLibrary;
73 IDllXKBCommon &m_xkbCommonLibrary;
75 PointerProcessor m_pointerProcessor;
76 KeyboardProcessor m_keyboardProcessor;
78 boost::scoped_ptr<wayland::Seat> m_seat;
79 boost::scoped_ptr<wayland::Pointer> m_pointer;
80 boost::scoped_ptr<wayland::Keyboard> m_keyboard;