neoGFX
Cross-platform C++ app/game engine
|
#include <i_game_controllers.hpp>
Public Types | |
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 |
Public Member Functions | |
declare_event (controller_connected, i_game_controller &) declare_event(controller_disconnected | |
virtual | ~i_game_controllers ()=default |
virtual void | enumerate_controllers ()=0 |
virtual const controller_list & | controllers () const =0 |
virtual bool | have_controller_for (game_player aPlayer) const =0 |
virtual i_game_controller & | controller_for (game_player aPlayer) const =0 |
virtual const i_string & | product_name (const hid_device_uuid &aProductId) const =0 |
virtual const button_map_type & | button_map (const hid_device_uuid &aProductId) const =0 |
virtual controller_list::iterator | add_device (i_game_controller &aController)=0 |
virtual controller_list::iterator | remove_device (i_game_controller &aController)=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 |
Static Public Member Functions | |
static uuid const & | iid () |
Definition at line 29 of file i_game_controllers.hpp.
typedef neolib::i_map<game_controller_button_ordinal, game_controller_button> neogfx::i_game_controllers::button_map_type |
Definition at line 39 of file i_game_controllers.hpp.
Definition at line 38 of file i_game_controllers.hpp.
|
virtualdefault |
|
inline |
Definition at line 55 of file i_game_controllers.hpp.
|
pure virtual |
Implemented in neogfx::game_controllers.
|
pure virtual |
Implemented in neogfx::game_controllers.
|
pure virtual |
Implemented in neogfx::game_controllers.
|
pure virtual |
Implemented in neogfx::game_controllers.
neogfx::i_game_controllers::declare_event | ( | controller_connected | , |
i_game_controller & | |||
) |
|
pure virtual |
|
pure virtual |
Implemented in neogfx::game_controllers.
|
inlinestatic |
Definition at line 62 of file i_game_controllers.hpp.
|
pure virtual |
|
pure virtual |
Implemented in neogfx::game_controllers.