The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions | Variables
joystick.cpp File Reference
#include "joystick.hpp"
#include "preferences.hpp"
#include "log.hpp"
#include <boost/math/constants/constants.hpp>
Include dependency graph for joystick.cpp:

Go to the source code of this file.

Macros

#define ERR_JOY   LOG_STREAM(err, log_joystick)
 
#define LOG_JOY   LOG_STREAM(info, log_joystick)
 
#define DBG_JOY   LOG_STREAM(debug, log_joystick)
 

Functions

static bool attached (const std::vector< SDL_Joystick * > &joysticks, const size_t index)
 
static const char * name (const std::vector< SDL_Joystick * > &joysticks, const size_t index)
 

Variables

static lg::log_domain log_joystick ("joystick")
 

Macro Definition Documentation

#define DBG_JOY   LOG_STREAM(debug, log_joystick)

Definition at line 24 of file joystick.cpp.

#define ERR_JOY   LOG_STREAM(err, log_joystick)

Definition at line 22 of file joystick.cpp.

Referenced by joystick_manager::close(), and joystick_manager::init().

#define LOG_JOY   LOG_STREAM(info, log_joystick)

Definition at line 23 of file joystick.cpp.

Referenced by joystick_manager::close(), and joystick_manager::init().

Function Documentation

static bool attached ( const std::vector< SDL_Joystick * > &  joysticks,
const size_t  index 
)
static
static const char* name ( const std::vector< SDL_Joystick * > &  joysticks,
const size_t  index 
)
static

Definition at line 46 of file joystick.cpp.

Referenced by joystick_manager::close(), and joystick_manager::init().

Variable Documentation

lg::log_domain log_joystick("joystick")
static