#include "touchcontrols.h"
#include "touchscreenlayout.h"
#include "gettime.h"
#include "irr_v2d.h"
#include "log.h"
#include "porting.h"
#include "settings.h"
#include "client/guiscalingfilter.h"
#include "client/keycode.h"
#include "client/renderingengine.h"
#include "client/texturesource.h"
#include "util/numeric.h"
#include "irr_gui_ptr.h"
#include "IGUIImage.h"
#include "IGUIStaticText.h"
#include "IGUIFont.h"
#include <IrrlichtDevice.h>
#include <ISceneCollisionManager.h>
#include <iostream>
#include <algorithm>
Functions | |
static void | load_button_texture (IGUIImage *gui_button, const std::string &path, const recti &button_rect, ISimpleTextureSource *tsrc, video::IVideoDriver *driver) |
static bool | buttons_handlePress (std::vector< button_info > &buttons, size_t pointer_id, IGUIElement *element, video::IVideoDriver *driver, IEventReceiver *receiver, ISimpleTextureSource *tsrc) |
static bool | buttons_handleRelease (std::vector< button_info > &buttons, size_t pointer_id, video::IVideoDriver *driver, IEventReceiver *receiver, ISimpleTextureSource *tsrc) |
static bool | buttons_step (std::vector< button_info > &buttons, float dtime, video::IVideoDriver *driver, IEventReceiver *receiver, ISimpleTextureSource *tsrc) |
static EKEY_CODE | id_to_keycode (touch_gui_button_id id) |
Variables | |
TouchControls * | g_touchcontrols |
|
static |
References BUTTON_REPEAT_DELAY.
Referenced by TouchControls::translateEvent().
|
static |
|
static |
References BUTTON_REPEAT_INTERVAL.
Referenced by TouchControls::step().
|
static |
References aux1_id, camera_id, chat_id, debug_id, drop_id, exit_id, fast_id, fly_id, g_settings, Settings::get(), inventory_id, jump_id, keyname_to_keycode(), minimap_id, noclip_id, range_id, sneak_id, toggle_chat_id, warningstream, and zoom_id.
Referenced by TouchControls::addButton(), TouchControls::applyJoystickStatus(), and TouchControls::mayAddButton().
|
static |
References ISimpleTextureSource::getTexture(), and guiScalingImageButton().
Referenced by TouchControls::addButton(), button_info::emitAction(), and TouchControls::makeButtonDirect().
TouchControls* g_touchcontrols |
Referenced by GUITouchscreenLayout::GUITouchscreenLayout(), Hud::drawHotbar(), Hud::drawItems(), Game::drawScene(), RealInputHandler::getJoystickDirection(), RealInputHandler::getJoystickSpeed(), Game::initGui(), GUITouchscreenLayout::OnEvent(), MyEventReceiver::OnEvent(), Game::processItemSelection(), Game::processPlayerInteraction(), Game::processUserInput(), GUIModalMenu::quitMenu(), ClientLauncher::run(), Game::showPauseMenu(), Game::shutdown(), GameUI::update(), Game::updateCamera(), Game::updateCameraDirection(), Game::updateCameraOrientation(), and Game::updatePlayerControl().