#include "IGUIStaticText.h"
#include "irrlichttypes.h"
#include <IEventReceiver.h>
#include <IGUIImage.h>
#include <IGUIEnvironment.h>
#include <memory>
#include <optional>
#include <unordered_map>
#include <vector>
#include "itemdef.h"
#include "client/game.h"
#include "util/basic_macros.h"
#include "client/texturesource.h"
Go to the source code of this file.
|
enum class | TapState { None
, ShortTap
, LongTap
} |
|
enum | touch_gui_button_id {
jump_id = 0
, sneak_id
, zoom_id
, aux1_id
,
overflow_id
, fly_id
, noclip_id
, fast_id
,
debug_id
, camera_id
, range_id
, minimap_id
,
toggle_chat_id
, chat_id
, inventory_id
, drop_id
,
exit_id
, joystick_off_id
, joystick_bg_id
, joystick_center_id
} |
|
◆ BUTTON_REPEAT_DELAY
#define BUTTON_REPEAT_DELAY 0.5f |
◆ BUTTON_REPEAT_INTERVAL
#define BUTTON_REPEAT_INTERVAL 0.333f |
◆ SIMULATED_CLICK_DURATION_MS
#define SIMULATED_CLICK_DURATION_MS 50 |
◆ TapState
Enumerator |
---|
None | |
ShortTap | |
LongTap | |
◆ touch_gui_button_id
Enumerator |
---|
jump_id | |
sneak_id | |
zoom_id | |
aux1_id | |
overflow_id | |
fly_id | |
noclip_id | |
fast_id | |
debug_id | |
camera_id | |
range_id | |
minimap_id | |
toggle_chat_id | |
chat_id | |
inventory_id | |
drop_id | |
exit_id | |
joystick_off_id | |
joystick_bg_id | |
joystick_center_id | |
◆ grab_gui_element()
template<typename T >
std::shared_ptr< T > grab_gui_element |
( |
T * | element | ) |
|
◆ g_touchcontrols
Referenced by Hud::drawHotbar(), Hud::drawItems(), Game::drawScene(), RealInputHandler::getJoystickDirection(), RealInputHandler::getJoystickSpeed(), Game::initGui(), 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().