The Battle for Wesnoth  1.13.10+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/general.hpp"
#include "log.hpp"
#include "sdl/surface.hpp"
#include "utils/math.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 26 of file joystick.cpp.

#define ERR_JOY   LOG_STREAM(err, log_joystick)

Definition at line 24 of file joystick.cpp.

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

#define LOG_JOY   LOG_STREAM(info, log_joystick)

Definition at line 25 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 48 of file joystick.cpp.

Referenced by game_events::event_handlers::add_event_handler(), wfl::function_symbol_table::add_function(), terrain_builder::add_images_from_config(), plugins_manager::add_plugin(), replay::add_rename(), schema_validation::class_tag::add_tag(), addon_filename_legal(), simple_wml::node::apply_diff(), ng::create_engine::type_list::apply_filter(), ng::create_engine::apply_level_filter(), attack_info(), aux_upvalue(), auxupvalue(), BOOST_AUTO_TEST_CASE(), unit_type::build_help_index(), gui2::dialogs::gamestate_inspector::controller::build_stuff_list(), team::change_team(), joystick_manager::close(), savegame::save_index_class::data(), db_getlocal(), db_setlocal(), default_map_generator_job::default_generate_map(), gui2::dialogs::game_load::delete_button_callback(), savegame::delete_game(), wfl::variant_callable::deref_iterator(), ai::engine_fai::do_parse_stage_from_config(), do_replay_handle(), events::menu_handler::do_search(), events::console_handler::do_set_var(), gui2::image_shape::draw(), editor::editor_palette< Item >::draw_contents(), game_display::draw_sidebar(), editor::context_manager::edit_scenario_dialog(), play_controller::hotkey_handler::execute_command(), play_controller::hotkey_handler::expand_autosaves(), config::find_child(), schema_validation::class_tag::find_tag(), findlocal(), markov_generator::generate(), help::generate_faction_topics(), help::generate_trait_topics(), savegame::save_index_class::get(), preprocessor_file::get_chunk(), font::get_color_string_pango(), persist_manager::get_context(), replay_helper::get_event(), display::get_fog_shroud_images(), gui2::get_mp_tooltip(), editor::editor_action::get_name(), editor::editor_action_extendable::get_name(), editor::editor_action_location::get_name(), editor::editor_action_location_terrain::get_name(), editor::editor_action_area::get_name(), ai::register_engine_factory< ENGINE >::get_new_instance(), filesystem::get_next_filename(), vconfig::get_parsed_config(), mp::lobby_info::get_room(), mp::lobby_info::get_whisper_log(), campaignd::server::handle_request_campaign_list(), campaignd::server::handle_upload(), ng::connect_engine::import_user(), joystick_manager::init(), init_textdomains(), game_config::library_versions_report(), ll_require(), ai::formula_ai::load_candidate_action_from_config(), plugins_manager::load_plugin(), ng::connect_engine::load_previous_sides_users(), preferences::login(), lua_check_impl::lua_check(), lua_getlocal(), lua_getupvalue(), lua_setlocal(), lua_setupvalue(), luaD_protectedparser(), luaL_checkoption(), luaT_objtypename(), luaU_undump(), main(), help::make_unit_link(), newlabelentry(), newupvalue(), simple_wml::node::node(), plugins_manager::notify_event(), ai::formula_ai::on_create(), font::open_font_impl(), savegame::savegame::open_save_game(), schema_validation::schema_validator::open_tag(), help::unit_topic_generator::operator()(), savegame::create_save_info::operator()(), game_config::optional_features_report(), game_config::optional_features_table(), pack_scalar(), ng::side_engine::place_user(), gui2::dialogs::preferences_dialog::post_build(), gui2::dialogs::mp_create_game::post_show(), gui2::dialogs::unit_advance::pre_show(), gui2::dialogs::label_settings::pre_show(), gui2::dialogs::terrain_layers::pre_show(), gui2::dialogs::game_load::pre_show(), gui2::dialogs::unit_list::pre_show(), gui2::dialogs::unit_recall::pre_show(), gui2::dialogs::editor_resize_map::pre_show(), context_free_grammar_generator::print_nonterminal(), ng::connect_engine::process_network_data(), gui2::dialogs::file_dialog::push_fileview_row(), pushglobalfuncname(), savegame::read_save_file(), savegame::save_index_class::rebuild(), metrics::record_sample(), reports::register_generator(), editor::context_manager::rename_area_dialog(), events::menu_handler::rename_unit(), editor::editor_controller::rename_unit(), application_lua_kernel::thread::run_script(), editor::context_manager::save_all_maps(), savegame::save_game_exists(), editor::context_manager::save_map(), gui2::chatbox::search_create_window(), searcher_C(), searcher_Croot(), searcher_Lua(), searcher_preload(), plugins_context::set_accessor(), plugins_context::set_accessor_int(), plugins_context::set_accessor_string(), plugins_context::set_callback(), gui2::unit_preview_pane::set_displayed_type(), gui2::unit_preview_pane::set_displayed_unit(), ng::configure_engine::set_game_name(), ng::configure_engine::set_game_password(), gui2::widget::set_id(), suh::set_is_moderator(), savegame::save_index_class::set_modified(), schema_validation::class_key::set_name(), schema_validation::class_tag::set_name(), editor::map_context::set_scenario_setup(), gui2::scrollbar_container::set_scrollbar_button_status(), editor::context_manager::set_window_title(), gui2::dialogs::event_mode_controller::show_list(), ng::side_engine::side_engine(), game_events::event_handlers::standardize_name(), SYNCED_COMMAND_HANDLER_FUNCTION(), unit_moves(), unit_name(), gui2::dialogs::mp_lobby::update_playerlist(), suh::user_is_moderator(), schema_validation::schema_validator::validate(), schema_validation::schema_validator::validate_key(), game_events::builtin_conditions::variable_matches(), varinfo(), and game_events::WML_HANDLER_FUNCTION().

Variable Documentation

lg::log_domain log_joystick("joystick")
static