.. index:: pair: class; EE::Window::JoystickManager .. _doxid-class_e_e_1_1_window_1_1_joystick_manager: class EE::Window::JoystickManager ================================= .. toctree:: :hidden: Overview ~~~~~~~~ A :ref:`Joystick ` Manager class. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class JoystickManager { public: // typedefs typedef std::function :target:`OpenCb`; // construction virtual :target:`~JoystickManager`(); // methods :ref:`Uint32` :ref:`getCount`(); virtual void :ref:`update`() = 0; :ref:`Joystick`* :ref:`getJoystick`(const :ref:`Uint32`& index); virtual void :ref:`rescan`(); virtual void :ref:`close`(); virtual void :ref:`open`(:ref:`OpenCb` openCb = nullptr); }; .. _details-class_e_e_1_1_window_1_1_joystick_manager: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A :ref:`Joystick ` Manager class. Methods ------- .. index:: pair: function; getCount .. _doxid-class_e_e_1_1_window_1_1_joystick_manager_1a1d2ba3ef8921cb7b1b5ef4184ea0eee2: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Uint32` getCount() .. rubric:: Returns: The number of joysticks attached to the system .. index:: pair: function; update .. _doxid-class_e_e_1_1_window_1_1_joystick_manager_1ada8c93cb4604b10ca52c97daac474fdb: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void update() = 0 Update the states of all joysticks .. index:: pair: function; getJoystick .. _doxid-class_e_e_1_1_window_1_1_joystick_manager_1aabfe9401c499fafb28c87852cae8e298: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Joystick`* getJoystick(const :ref:`Uint32`& index) .. rubric:: Returns: The joystick instante of the joystick index .. index:: pair: function; rescan .. _doxid-class_e_e_1_1_window_1_1_joystick_manager_1a34874bcd168a1a4fda3453aa4fd2c5bf: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void rescan() Rescan all joysticks to look for new joystick connected. This could be slow on some backends, and unnecessary on others. .. index:: pair: function; close .. _doxid-class_e_e_1_1_window_1_1_joystick_manager_1a3ca379ce207ed2930db5da315bf70bbb: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void close() Close all the joysticks .. index:: pair: function; open .. _doxid-class_e_e_1_1_window_1_1_joystick_manager_1a5f8b981ad9df0d221703a74cf5eccc80: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void open(:ref:`OpenCb` openCb = nullptr) Open all the joysticks