1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-25 21:55:25 +02:00

Some fixes

This commit is contained in:
Gregor Parzefall
2024-03-15 22:24:05 +01:00
parent 331b1151a6
commit e51986411b
2 changed files with 55 additions and 111 deletions

View File

@@ -75,9 +75,6 @@ typedef enum
joystick_off_id,
joystick_bg_id,
joystick_center_id,
// invalid value
touch_gui_button_invalid,
} touch_gui_button_id;
typedef enum
@@ -99,9 +96,6 @@ typedef enum
// If you tap faster than this value, the simulated clicks are of course shorter.
#define SIMULATED_CLICK_DURATION_MS 50
extern const std::string button_image_names[];
extern const std::string joystick_image_names[];
struct button_info
{
float repeat_counter;
@@ -256,9 +250,6 @@ private:
std::vector<button_info> m_buttons;
// check if a button has changed
void handleChangedButton(const SEvent &event);
// initialize a button
void addButton(touch_gui_button_id id, const std::string &image,
const rect<s32> &rect);