1
System / Problem with MouseButtonPressed
« on: June 12, 2020, 02:57:25 pm »
I have code
if (event.type == Event::MouseButtonPressed)
{
if (event.key.code == Mouse::Left)
{
//Some code
}
}
I need that when long hold down the left mouse button this code does not work. (When you click on the mouse, this code should work once, while further holding mouse down, the code should not work) How to do it?
P.S. Sorry my english
if (event.type == Event::MouseButtonPressed)
{
if (event.key.code == Mouse::Left)
{
//Some code
}
}
I need that when long hold down the left mouse button this code does not work. (When you click on the mouse, this code should work once, while further holding mouse down, the code should not work) How to do it?
P.S. Sorry my english