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

#include <i_game_controller.hpp>

Inheritance diagram for neogfx::i_game_controller:
neogfx::i_hid_device neolib::i_reference_counted

Classes

struct  player_not_assigned
 
struct  unknown_port
 

Public Types

typedef i_game_controller abstract_type
 
- Public Types inherited from neogfx::i_hid_device
typedef i_hid_device abstract_type
 

Public Member Functions

 declare_event (button_pressed, game_controller_button, key_modifiers_e) declare_event(button_released
 
key_modifiers_e declare_event (button_repeat, game_controller_button, key_modifiers_e) declare_event(left_trigger_moved
 
key_modifiers_e key_modifiers_e declare_event (right_trigger_moved, double, key_modifiers_e) declare_event(left_thumb_moved
 
key_modifiers_e key_modifiers_e const vec2 key_modifiers_e declare_event (right_thumb_moved, const vec2 &, key_modifiers_e) declare_event(stick_moved
 
key_modifiers_e key_modifiers_e const vec2 key_modifiers_e const vec3 key_modifiers_e declare_event (stick_rotated, const vec3 &, key_modifiers_e) declare_event(slider_moved
 
virtual bool player_assigned () const =0
 
virtual game_player player () const =0
 
virtual void assign_player (game_player aPlayer)=0
 
virtual void unassign_player ()=0
 
virtual bool have_port () const =0
 
virtual game_controller_port port () const =0
 
virtual void set_port (game_controller_port aPort)=0
 
virtual void clear_port ()=0
 
virtual bool needs_calibrating () const =0
 
virtual bool is_button_pressed (game_controller_button_ordinal aButtonOrdinal) const =0
 
virtual bool is_button_pressed (game_controller_button aButton) const =0
 
virtual double left_trigger_position () const =0
 
virtual double right_trigger_position () const =0
 
virtual const vec2left_thumb_position () const =0
 
virtual const vec2right_thumb_position () const =0
 
virtual const vec3stick_position () const =0
 
virtual const vec3stick_rotation () const =0
 
virtual const vec2slider_position () const =0
 
virtual uint32_t button_count () const =0
 
virtual bool button_mapped (game_controller_button aButton) const =0
 
virtual game_controller_button_ordinal button_to_button_ordinal (game_controller_button aButton) const =0
 
virtual game_controller_button button_ordinal_to_button (game_controller_button_ordinal aButtonOrdinal) const =0
 
- Public Member Functions inherited from neogfx::i_hid_device
virtual declare_event(enabled) declare_event(disabled) public hid_device_class device_class () const =0
 
virtual hid_device_subclass device_subclass () const =0
 
virtual hid_device_uuid product_id () const =0
 
virtual hid_device_uuid instance_id () const =0
 
virtual bool is_enabled () const =0
 
virtual void enable ()=0
 
virtual void disable ()=0
 
virtual const i_stringproduct_name () const =0
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 

Public Attributes

 game_controller_button
 
key_modifiers_e double
 

Detailed Description

Definition at line 120 of file i_game_controller.hpp.

Member Typedef Documentation

◆ abstract_type

Member Function Documentation

◆ assign_player()

virtual void neogfx::i_game_controller::assign_player ( game_player  aPlayer)
pure virtual

◆ button_count()

virtual uint32_t neogfx::i_game_controller::button_count ( ) const
pure virtual

◆ button_mapped()

virtual bool neogfx::i_game_controller::button_mapped ( game_controller_button  aButton) const
pure virtual

◆ button_ordinal_to_button()

virtual game_controller_button neogfx::i_game_controller::button_ordinal_to_button ( game_controller_button_ordinal  aButtonOrdinal) const
pure virtual

◆ button_to_button_ordinal()

virtual game_controller_button_ordinal neogfx::i_game_controller::button_to_button_ordinal ( game_controller_button  aButton) const
pure virtual

◆ clear_port()

virtual void neogfx::i_game_controller::clear_port ( )
pure virtual

◆ declare_event() [1/5]

neogfx::i_game_controller::declare_event ( button_pressed  ,
game_controller_button  ,
key_modifiers_e   
)

◆ declare_event() [2/5]

key_modifiers_e neogfx::i_game_controller::declare_event ( button_repeat  ,
game_controller_button  ,
key_modifiers_e   
)

◆ declare_event() [3/5]

key_modifiers_e key_modifiers_e const vec2 key_modifiers_e neogfx::i_game_controller::declare_event ( right_thumb_moved  ,
const vec2 ,
key_modifiers_e   
)

◆ declare_event() [4/5]

key_modifiers_e key_modifiers_e neogfx::i_game_controller::declare_event ( right_trigger_moved  ,
double  ,
key_modifiers_e   
)

◆ declare_event() [5/5]

key_modifiers_e key_modifiers_e const vec2 key_modifiers_e const vec3 key_modifiers_e neogfx::i_game_controller::declare_event ( stick_rotated  ,
const vec3 ,
key_modifiers_e   
)

◆ have_port()

virtual bool neogfx::i_game_controller::have_port ( ) const
pure virtual

◆ is_button_pressed() [1/2]

virtual bool neogfx::i_game_controller::is_button_pressed ( game_controller_button  aButton) const
pure virtual

◆ is_button_pressed() [2/2]

virtual bool neogfx::i_game_controller::is_button_pressed ( game_controller_button_ordinal  aButtonOrdinal) const
pure virtual

◆ left_thumb_position()

virtual const vec2 & neogfx::i_game_controller::left_thumb_position ( ) const
pure virtual

◆ left_trigger_position()

virtual double neogfx::i_game_controller::left_trigger_position ( ) const
pure virtual

◆ needs_calibrating()

virtual bool neogfx::i_game_controller::needs_calibrating ( ) const
pure virtual

◆ player()

virtual game_player neogfx::i_game_controller::player ( ) const
pure virtual

◆ player_assigned()

virtual bool neogfx::i_game_controller::player_assigned ( ) const
pure virtual

◆ port()

virtual game_controller_port neogfx::i_game_controller::port ( ) const
pure virtual

◆ right_thumb_position()

virtual const vec2 & neogfx::i_game_controller::right_thumb_position ( ) const
pure virtual

◆ right_trigger_position()

virtual double neogfx::i_game_controller::right_trigger_position ( ) const
pure virtual

◆ set_port()

virtual void neogfx::i_game_controller::set_port ( game_controller_port  aPort)
pure virtual

◆ slider_position()

virtual const vec2 & neogfx::i_game_controller::slider_position ( ) const
pure virtual

◆ stick_position()

virtual const vec3 & neogfx::i_game_controller::stick_position ( ) const
pure virtual

◆ stick_rotation()

virtual const vec3 & neogfx::i_game_controller::stick_rotation ( ) const
pure virtual

◆ unassign_player()

virtual void neogfx::i_game_controller::unassign_player ( )
pure virtual

Member Data Documentation

◆ double

key_modifiers_e neogfx::i_game_controller::double

Definition at line 128 of file i_game_controller.hpp.

◆ game_controller_button

neogfx::i_game_controller::game_controller_button

Definition at line 126 of file i_game_controller.hpp.


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