NAP
Public Member Functions | Public Attributes | List of all members
SDLInputService::SDLController Class Referencefinal

#include <sdlinputservice.h>

Public Member Functions

 SDLController (int deviceID)
 
 ~SDLController ()
 

Public Attributes

int mDeviceID = -1
 Physical device id. More...
 
int mInstanceID = -1
 Instance id (uuid) More...
 
void * mController = nullptr
 Pointer to the controller or joystick. More...
 
bool mIsJoystick = false
 If the controller is a joystick or actual controller. More...
 

Description

Struct used for keeping track of controllers inside the system The SDL controller, when constructed, will try to open a connection On destruction the controller will close it's connection (if opened)

Constructor & Destructor Documentation

◆ SDLController()

SDLController ( int  deviceID)

◆ ~SDLController()

Member Data Documentation

◆ mController

void* mController = nullptr

Pointer to the controller or joystick.

◆ mDeviceID

int mDeviceID = -1

Physical device id.

◆ mInstanceID

int mInstanceID = -1

Instance id (uuid)

◆ mIsJoystick

bool mIsJoystick = false

If the controller is a joystick or actual controller.