mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
double click support
This commit is contained in:
parent
b6f2456a82
commit
a678eddb77
7 changed files with 102 additions and 10 deletions
|
|
@ -62,7 +62,12 @@ namespace gui {
|
|||
std::unique_ptr<Camera> uicamera;
|
||||
std::shared_ptr<Menu> menu;
|
||||
std::queue<runnable> postRunnables;
|
||||
void actMouse();
|
||||
|
||||
float doubleClickTimer = 0.0f;
|
||||
float doubleClickDelay = 0.5f;
|
||||
bool doubleClicked = false;
|
||||
|
||||
void actMouse(float delta);
|
||||
void actFocused();
|
||||
public:
|
||||
GUI();
|
||||
|
|
@ -121,6 +126,9 @@ namespace gui {
|
|||
void onAssetsLoad(Assets* assets);
|
||||
|
||||
void postRunnable(runnable callback);
|
||||
|
||||
void setDoubleClickDelay(float delay);
|
||||
float getDoubleClickDelay() const;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue