The Battle for Wesnoth  1.15.0-dev
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 std::size_t index)
 
static const char * name (const std::vector< SDL_Joystick *> &joysticks, const std::size_t index)
 

Variables

static lg::log_domain log_joystick ("joystick")
 

Macro Definition Documentation

◆ DBG_JOY

#define DBG_JOY   LOG_STREAM(debug, log_joystick)

Definition at line 26 of file joystick.cpp.

◆ ERR_JOY

#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().

◆ LOG_JOY

#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

◆ attached()

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

◆ name()

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

Definition at line 48 of file joystick.cpp.

Referenced by unit::ability_tooltips(), game_events::event_handlers::add_event_handler(), 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::apply_level_filter(), archive_dir(), attack_info(), simple_wml::node::attr(), aux_upvalue(), auxupvalue(), t_string::base_str(), BOOST_AUTO_TEST_CASE(), team::calculate_is_enemy(), team::change_team(), game_events::event_handlers::clean_up_expired_handlers(), joystick_manager::close(), events::menu_handler::current_unit(), savegame::save_index_class::data(), db_getlocal(), db_setlocal(), default_map_generator_job::default_generate_map(), gui2::dialogs::game_load::delete_button_callback(), wfl::variant_callable::deref_iterator(), mp_sync::user_choice::description(), play_controller::hotkey_handler::do_execute_command(), 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< overlay >::draw_contents(), display::draw_fog_shroud_transition_images(), editor::context_manager::edit_scenario_dialog(), game_events::manager::execute_on_events(), play_controller::hotkey_handler::expand_autosaves(), config::find_child(), gui2::chatbox::find_or_create_window(), schema_validation::class_tag::find_tag(), findlocal(), savegame::save_info::format_time_local(), markov_generator::generate(), help::unit_topic_generator::generate(), help::generate_trait_topics(), savegame::save_index_class::get(), game_events::event_handlers::get_active(), preprocessor_file::get_chunk(), font::get_color_string_pango(), persist_manager::get_context(), replay_helper::get_event(), 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(), ai::readonly_context_impl::get_readonly_context(), mp::lobby_info::get_room(), mp::lobby_info::get_whisper_log(), campaignd::server::handle_request_campaign_list(), campaignd::server::handle_upload(), wb::manager::has_temp_move(), game_display::has_time_area(), ng::connect_engine::import_user(), joystick_manager::init(), init_textdomains(), intf_invoke_synced_command(), game_lua_kernel::intf_scroll(), 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_getinfo(), lua_getlocal(), lua_getupvalue(), lua_setlocal(), lua_setupvalue(), luaD_protectedparser(), luaL_checkoption(), luaT_objtypename(), luaU_undump(), main(), game_lua_kernel::my_name(), newlabelentry(), newupvalue(), simple_wml::node::node(), plugins_manager::notify_event(), ai::formula_ai::on_create(), schema_validation::schema_validator::open_tag(), image::swap_modification::operator()(), time_of_day::operator==(), schema_validation::class_tag::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::terrain_layers::pre_show(), gui2::dialogs::label_settings::pre_show(), gui2::dialogs::faction_select::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(), metrics::record_sample(), reports::register_generator(), config::remove_attributes(), filesystem::blacklist_pattern_list::remove_blacklisted_files_and_dirs(), unit::rename(), editor::context_manager::rename_area_dialog(), events::menu_handler::rename_unit(), editor::editor_controller::rename_unit(), replay_controller::return_to_play_side(), application_lua_kernel::thread::run_script(), editor::context_manager::save_all_maps(), editor::context_manager::save_map(), searcher_C(), searcher_Croot(), searcher_Lua(), searcher_preload(), synced_context::server_choice::send_request(), plugins_context::set_accessor(), plugins_context::set_accessor_int(), plugins_context::set_accessor_string(), plugins_context::set_callback(), schema_validation::schema_validator::set_create_exceptions(), gui2::unit_preview_pane::set_displayed_type(), gui2::unit_preview_pane::set_displayed_unit(), mp::lobby_info::set_game_filter_invert(), 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(), unit::set_name(), editor::map_context::set_scenario_setup(), gui2::scrollbar_container::set_scrollbar_button_status(), synced_context::set_synced_state(), gui2::chatbox::set_wesnothd_connection(), editor::context_manager::set_window_title(), gui2::dialogs::event_mode_controller::show_list(), attack_type::special_tooltips(), game_events::event_handlers::standardize_name(), savegame::save_info::summary(), SYNCED_COMMAND_HANDLER_FUNCTION(), unit_moves(), unit_name(), gui2::player_list_helper::update_list(), gui2::dialogs::mp_lobby::update_playerlist(), suh::user_is_moderator(), team::user_team_name(), schema_validation::schema_validator::validate(), schema_validation::schema_validator::validate_key(), game_events::builtin_conditions::variable_matches(), wfl::variant::variant(), varinfo(), user_choice_manager::wait_message(), attack_type::weapon_specials(), game_events::WML_HANDLER_FUNCTION(), abstract_validator::~abstract_validator(), ai::formula_ai::~formula_ai(), reports::generator::~generator(), map_generator::~map_generator(), and user_handler::~user_handler().

Variable Documentation

◆ log_joystick

lg::log_domain log_joystick("joystick")
static