cae  0.0.0
Cross-API graphics engine
Loading...
Searching...
No Matches
cae::AInput Interface Reference

Abstract class for inputs. More...

#include <AInput.hpp>

+ Inheritance diagram for cae::AInput:
+ Collaboration diagram for cae::AInput:

Public Member Functions

 ~AInput () override=default
 
const std::unique_ptr< IKeyboard > & getKeyboard () const override
 
const std::unique_ptr< IMouse > & getMouse () const override
 
const std::vector< std::unique_ptr< IGamepad > > & getGamepads () const override
 
void setGamepads (std::vector< std::unique_ptr< IGamepad > > &gamepads) override
 
void setKeyboard (std::unique_ptr< IKeyboard > &keyboard) override
 
void setMouse (std::unique_ptr< IMouse > &mouse) override
 
- Public Member Functions inherited from cae::IInput
 ~IInput () override=default
 
- Public Member Functions inherited from utl::IPlugin
virtual ~IPlugin ()=default
 
virtual std::string getName () const =0
 Get the name of the plugin.
 
virtual PluginType getType () const =0
 Get the type of the plugin.
 
virtual PluginPlatform getPlatform () const =0
 Get the handled platform of the plugin.
 

Private Attributes

std::unique_ptr< IKeyboardm_keyboard
 
std::unique_ptr< IMousem_mouse
 
std::vector< std::unique_ptr< IGamepad > > m_gamepads
 

Detailed Description

Abstract class for inputs.

Definition at line 19 of file AInput.hpp.

Constructor & Destructor Documentation

◆ ~AInput()

cae::AInput::~AInput ( )
overridedefault

Member Function Documentation

◆ getGamepads()

const std::vector< std::unique_ptr< IGamepad > > & cae::AInput::getGamepads ( ) const
inlineoverridevirtual

Implements cae::IInput.

Definition at line 27 of file AInput.hpp.

References m_gamepads.

◆ getKeyboard()

const std::unique_ptr< IKeyboard > & cae::AInput::getKeyboard ( ) const
inlineoverridevirtual

Implements cae::IInput.

Definition at line 25 of file AInput.hpp.

References m_keyboard.

◆ getMouse()

const std::unique_ptr< IMouse > & cae::AInput::getMouse ( ) const
inlineoverridevirtual

Implements cae::IInput.

Definition at line 26 of file AInput.hpp.

References m_mouse.

◆ setGamepads()

void cae::AInput::setGamepads ( std::vector< std::unique_ptr< IGamepad > > & gamepads)
inlineoverridevirtual

Implements cae::IInput.

Definition at line 29 of file AInput.hpp.

References m_gamepads.

◆ setKeyboard()

void cae::AInput::setKeyboard ( std::unique_ptr< IKeyboard > & keyboard)
inlineoverridevirtual

Implements cae::IInput.

Definition at line 33 of file AInput.hpp.

References m_keyboard.

◆ setMouse()

void cae::AInput::setMouse ( std::unique_ptr< IMouse > & mouse)
inlineoverridevirtual

Implements cae::IInput.

Definition at line 34 of file AInput.hpp.

References m_mouse.

Member Data Documentation

◆ m_gamepads

std::vector<std::unique_ptr<IGamepad> > cae::AInput::m_gamepads
private

Definition at line 39 of file AInput.hpp.

Referenced by getGamepads(), and setGamepads().

◆ m_keyboard

std::unique_ptr<IKeyboard> cae::AInput::m_keyboard
private

Definition at line 37 of file AInput.hpp.

Referenced by getKeyboard(), and setKeyboard().

◆ m_mouse

std::unique_ptr<IMouse> cae::AInput::m_mouse
private

Definition at line 38 of file AInput.hpp.

Referenced by getMouse(), and setMouse().


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