neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::game_controllers Class Reference

#include <game_controllers.hpp>

Inheritance diagram for neogfx::game_controllers:
neogfx::i_game_controllers neolib::services::i_service

Public Member Functions

 define_declared_event (ControllerConnected, controller_connected, i_game_controller &) define_declared_event(ControllerDisconnected
 
 game_controllers ()
 
const controller_listcontrollers () const override
 
bool have_controller_for (game_player aPlayer) const override
 
i_game_controllercontroller_for (game_player aPlayer) const override
 
const button_map_typebutton_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_stringproduct_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_buttonbutton_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_buttonbutton_map_type
 
- Static Public Member Functions inherited from neogfx::i_game_controllers
static uuid const & iid ()
 

Detailed Description

Definition at line 32 of file game_controllers.hpp.

Constructor & Destructor Documentation

◆ game_controllers()

neogfx::game_controllers::game_controllers ( )

Member Function Documentation

◆ add_device()

abstract_t< neolib::vector< ref_ptr< i_game_controller > > >::iterator neogfx::game_controllers::add_device ( i_game_controller aController)
overridevirtual

◆ button_map()

const button_map_type & neogfx::game_controllers::button_map ( const hid_device_uuid aProductId) const
overridevirtual

◆ controller_for()

i_game_controller & neogfx::game_controllers::controller_for ( game_player  aPlayer) const
overridevirtual

◆ controllers()

const controller_list & neogfx::game_controllers::controllers ( ) const
overridevirtual

◆ define_declared_event()

neogfx::game_controllers::define_declared_event ( ControllerConnected  ,
controller_connected  ,
i_game_controller  
)

◆ have_controller_for()

bool neogfx::game_controllers::have_controller_for ( game_player  aPlayer) const
overridevirtual

◆ remove_device()

abstract_t< neolib::vector< ref_ptr< i_game_controller > > >::iterator neogfx::game_controllers::remove_device ( i_game_controller aController)
overridevirtual

Member Data Documentation

◆ button_map_type

Definition at line 40 of file game_controllers.hpp.

◆ controller_disconnected

neogfx::game_controllers::controller_disconnected

Definition at line 36 of file game_controllers.hpp.


The documentation for this class was generated from the following file: