1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-10 19:32:10 +00:00
This commit is contained in:
y5nw 2025-06-01 11:14:04 +02:00 committed by y5nw
parent 60b6d9d668
commit 8d5657d257
8 changed files with 68 additions and 86 deletions

View file

@ -16,7 +16,7 @@
#include "itemdef.h"
#include "touchscreenlayout.h"
#include "util/basic_macros.h"
#include "client/keycode.h"
#include "client/keys.h"
class IrrlichtDevice;
namespace gui
@ -57,7 +57,7 @@ struct button_info
{
touch_gui_button_id id;
float repeat_counter;
KeyPress keypress;
GameKeyType game_key;
std::vector<size_t> pointer_ids;
std::shared_ptr<IGUIImage> gui_button = nullptr;
@ -202,7 +202,7 @@ private:
// for its buttons. We only want static image display, not interactivity,
// from Irrlicht.
void emitKeyboardEvent(KeyPress keycode, bool pressed);
void emitGameKeyEvent(GameKeyType, bool pressed);
void loadButtonTexture(IGUIImage *gui_button, const std::string &path);
void buttonEmitAction(button_info &btn, bool action);