Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
touchcontrols.h File Reference
#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"
+ Include dependency graph for touchcontrols.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  button_info
 
class  TouchControls
 

Namespaces

namespace  irr
 

Macros

#define BUTTON_REPEAT_DELAY   0.5f
 
#define BUTTON_REPEAT_INTERVAL   0.333f
 
#define SIMULATED_CLICK_DURATION_MS   50
 

Enumerations

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
}
 

Functions

template<typename T >
std::shared_ptr< T > grab_gui_element (T *element)
 

Variables

TouchControlsg_touchcontrols
 

Macro Definition Documentation

◆ BUTTON_REPEAT_DELAY

#define BUTTON_REPEAT_DELAY   0.5f

Referenced by buttons_handlePress().

◆ BUTTON_REPEAT_INTERVAL

#define BUTTON_REPEAT_INTERVAL   0.333f

Referenced by buttons_step().

◆ SIMULATED_CLICK_DURATION_MS

#define SIMULATED_CLICK_DURATION_MS   50

Enumeration Type Documentation

◆ TapState

enum class TapState
strong
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 

Function Documentation

◆ grab_gui_element()

template<typename T >
std::shared_ptr< T > grab_gui_element ( T * element)

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

+ Here is the caller graph for this function:

Variable Documentation

◆ g_touchcontrols