neoGFX
Cross-platform C++ app/game engine
|
#include <game_controllers.hpp>
Public Member Functions | |
define_declared_event (ControllerConnected, controller_connected, i_game_controller &) define_declared_event(ControllerDisconnected | |
game_controllers () | |
const controller_list & | controllers () const override |
bool | have_controller_for (game_player aPlayer) const override |
i_game_controller & | controller_for (game_player aPlayer) const override |
const button_map_type & | button_map (const hid_device_uuid &aProductId) const override |
abstract_t< neolib::vector< ref_ptr< i_game_controller > > >::iterator | add_device (i_game_controller &aController) override |
abstract_t< neolib::vector< ref_ptr< i_game_controller > > >::iterator | remove_device (i_game_controller &aController) override |
Public Member Functions inherited from neogfx::i_game_controllers | |
declare_event (controller_connected, i_game_controller &) declare_event(controller_disconnected | |
virtual | ~i_game_controllers ()=default |
virtual void | enumerate_controllers ()=0 |
virtual const i_string & | product_name (const hid_device_uuid &aProductId) const =0 |
template<typename Controller , typename... Args> | |
ref_ptr< Controller > | add_controller (Args &&... aArgs) |
Public Member Functions inherited from neolib::services::i_service | |
virtual | ~i_service ()=default |
Public Attributes | |
i_game_controller &define_declared_event(ControllerCalibrationRequired, controller_calibration_required, i_game_controller &) public typedef neolib::map< game_controller_button_ordinal, game_controller_button > | button_map_type |
controller_disconnected | |
Additional Inherited Members | |
Public Types inherited from neogfx::i_game_controllers | |
typedef neolib::i_vector< i_ref_ptr< i_game_controller > > | controller_list |
typedef neolib::i_map< game_controller_button_ordinal, game_controller_button > | button_map_type |
Static Public Member Functions inherited from neogfx::i_game_controllers | |
static uuid const & | iid () |
Definition at line 32 of file game_controllers.hpp.
neogfx::game_controllers::game_controllers | ( | ) |
|
overridevirtual |
Implements neogfx::i_game_controllers.
|
overridevirtual |
Implements neogfx::i_game_controllers.
|
overridevirtual |
Implements neogfx::i_game_controllers.
|
overridevirtual |
Implements neogfx::i_game_controllers.
neogfx::game_controllers::define_declared_event | ( | ControllerConnected | , |
controller_connected | , | ||
i_game_controller & | |||
) |
|
overridevirtual |
Implements neogfx::i_game_controllers.
|
overridevirtual |
Implements neogfx::i_game_controllers.
i_game_controller& define_declared_event (ControllerCalibrationRequired, controller_calibration_required, i_game_controller&) public typedef neolib::map<game_controller_button_ordinal, game_controller_button> neogfx::game_controllers::button_map_type |
Definition at line 40 of file game_controllers.hpp.
neogfx::game_controllers::controller_disconnected |
Definition at line 36 of file game_controllers.hpp.