OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SdlGamepad Class Reference

#include <SdlGamepad.h>

Inheritance diagram for SdlGamepad:
PlatformGamepad

Public Member Functions

 SdlGamepad (SdlPlatformSharedState *state, SDL_GameController *gamepad, SDL_JoystickID id)
 
virtual ~SdlGamepad ()
 
virtual std::string model () const override
 
virtual std::string serial () const override
 
SDL_JoystickID id ()
 
- Public Member Functions inherited from PlatformGamepad
virtual ~PlatformGamepad ()=default
 
virtual std::string model () const =0
 
virtual std::string serial () const =0
 

Private Attributes

SdlPlatformSharedState_state = nullptr
 
SDL_GameController * _gamepad = nullptr
 
SDL_JoystickID _id = 0
 

Constructor & Destructor Documentation

◆ SdlGamepad()

SdlGamepad::SdlGamepad ( SdlPlatformSharedState state,
SDL_GameController *  gamepad,
SDL_JoystickID  id 
)

◆ ~SdlGamepad()

SdlGamepad::~SdlGamepad ( )
virtual

Member Function Documentation

◆ id()

SDL_JoystickID SdlGamepad::id ( )
inline

◆ model()

std::string SdlGamepad::model ( ) const
overridevirtual
Returns
Model of this gamepad.

Implements PlatformGamepad.

◆ serial()

std::string SdlGamepad::serial ( ) const
overridevirtual
Returns
Serial number of this gamepad.

Implements PlatformGamepad.

Member Data Documentation

◆ _gamepad

SDL_GameController* SdlGamepad::_gamepad = nullptr
private

◆ _id

SDL_JoystickID SdlGamepad::_id = 0
private

◆ _state

SdlPlatformSharedState* SdlGamepad::_state = nullptr
private

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