Minetest  5.4.0
touchscreengui.cpp File Reference
#include "touchscreengui.h"
#include "irrlichttypes.h"
#include "irr_v2d.h"
#include "log.h"
#include "client/keycode.h"
#include "settings.h"
#include "gettime.h"
#include "util/numeric.h"
#include "porting.h"
#include "client/guiscalingfilter.h"
#include <iostream>
#include <algorithm>
#include <ISceneCollisionManager.h>
+ Include dependency graph for touchscreengui.cpp:

Functions

static irr::EKEY_CODE id2keycode (touch_gui_button_id id)
 
static void load_button_texture (button_info *btn, const char *path, const rect< s32 > &button_rect, ISimpleTextureSource *tsrc, video::IVideoDriver *driver)
 

Variables

const char ** button_imagenames
 
const char ** joystick_imagenames
 
TouchScreenGUIg_touchscreengui
 

Function Documentation

◆ id2keycode()

static irr::EKEY_CODE id2keycode ( touch_gui_button_id  id)
static

References backward_id, camera_id, chat_id, crunch_id, debug_id, drop_id, fast_id, fly_id, forward_id, g_settings, Settings::get(), inventory_id, jump_id, keyname_to_keycode(), left_id, minimap_id, noclip_id, range_id, right_id, special1_id, toggle_chat_id, and zoom_id.

Referenced by AutoHideButtonBar::addButton(), TouchScreenGUI::applyJoystickStatus(), and TouchScreenGUI::initButton().

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

◆ load_button_texture()

static void load_button_texture ( button_info btn,
const char *  path,
const rect< s32 > &  button_rect,
ISimpleTextureSource tsrc,
video::IVideoDriver *  driver 
)
static

References g_settings, Settings::getBool(), ISimpleTextureSource::getTexture(), button_info::guibutton, and guiScalingImageButton().

Referenced by AutoHideButtonBar::addButton(), AutoHideButtonBar::init(), TouchScreenGUI::initButton(), TouchScreenGUI::initJoystickButton(), and AutoHideButtonBar::isButton().

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

Variable Documentation

◆ button_imagenames

const char** button_imagenames
Initial value:
= (const char *[]) {
"jump_btn.png",
"down.png",
"zoom.png",
"aux_btn.png"
}

Referenced by TouchScreenGUI::initButton().

◆ g_touchscreengui

◆ joystick_imagenames

const char** joystick_imagenames
Initial value:
= (const char *[]) {
"joystick_off.png",
"joystick_bg.png",
"joystick_center.png"
}

Referenced by TouchScreenGUI::initJoystickButton().