mirror of
https://github.com/Relintai/ui_extensions.git
synced 2024-11-12 10:25:27 +01:00
26 lines
535 B
C++
26 lines
535 B
C++
#ifndef TOUCH_BUTTON_H
|
|
#define TOUCH_BUTTON_H
|
|
|
|
#include "core/engine.h"
|
|
#include "core/os/os.h"
|
|
#include "scene/gui/button.h"
|
|
#include "scene/main/viewport.h"
|
|
|
|
class TouchButton : public Button {
|
|
GDCLASS(TouchButton, Button);
|
|
|
|
public:
|
|
TouchButton() {}
|
|
|
|
bool _is_point_inside(const Point2 &p_point);
|
|
|
|
protected:
|
|
void _notification(int p_what);
|
|
virtual void _gui_input(Ref<InputEvent> p_event);
|
|
virtual void _unhandled_input(Ref<InputEvent> p_event);
|
|
void _input(Ref<InputEvent> p_event);
|
|
static void _bind_methods();
|
|
};
|
|
|
|
#endif
|