Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
touchcontrols.cpp File Reference
#include "touchcontrols.h"
#include "touchscreenlayout.h"
#include "irr_v2d.h"
#include "log.h"
#include "porting.h"
#include "settings.h"
#include "client/guiscalingfilter.h"
#include "client/renderingengine.h"
#include "client/texturesource.h"
#include "util/enum_string.h"
#include "irr_gui_ptr.h"
#include "IGUIImage.h"
#include "IGUIStaticText.h"
#include <IrrlichtDevice.h>
#include <ISceneCollisionManager.h>
#include <IGUIElement.h>
#include <IGUIEnvironment.h>
#include <iostream>
#include <algorithm>
+ Include dependency graph for touchcontrols.cpp:

Functions

static std::string id_to_setting (touch_gui_button_id id)
 
static KeyPress id_to_keypress (touch_gui_button_id id)
 

Variables

TouchControlsg_touchcontrols
 
static const char * setting_names []
 

Function Documentation

◆ id_to_keypress()

static KeyPress id_to_keypress ( touch_gui_button_id id)
static

References EscapeKey, exit_id, getKeySetting(), id_to_setting(), and warningstream.

Referenced by TouchControls::addButton(), TouchControls::applyContextControls(), TouchControls::applyJoystickStatus(), TouchControls::mayAddButton(), and TouchControls::releaseAll().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ id_to_setting()

static std::string id_to_setting ( touch_gui_button_id id)
static

References aux1_id, camera_id, chat_id, debug_id, dig_id, drop_id, fast_id, fly_id, inventory_id, jump_id, minimap_id, noclip_id, place_id, range_id, sneak_id, toggle_chat_id, and zoom_id.

Referenced by TouchControls::TouchControls(), and id_to_keypress().

+ Here is the caller graph for this function:

Variable Documentation

◆ g_touchcontrols

◆ setting_names

const char* setting_names[]
static
Initial value:
= {
"touch_interaction_style",
"touchscreen_threshold", "touch_long_tap_delay",
"fixed_virtual_joystick", "virtual_joystick_triggers_aux1",
"touch_layout",
}