Go ahead and try the following with the search button, although it's not entirely accurate: it doesn't follow the first rule correctly.
We'll call the original state of the search button A, and the pressed (or in the case of the search button, hovered) state, B.
If you click down on the search button, it changes from A to B. (well, in the case of the search button, if you hover over the search button, it changes to B, but I think usually, there's a different state for hovering over a button and clicking on the button)
If you move your mouse away from the search button while still keeping the left click pressed, it changes back into state A, and if you then move your mouse back over the search button, it changes to state B again.
If you release the left click button while your mouse is on the search button, it does the action (which is to search, in our case).
If you release the left click button while your mouse is not on the search button, it turns back into state A.
My question is, how can I simulate this with touch on Construct 2? (Obviously, there is no hover 'state', but there will be a touched state and a non-touched state)
If my model of button clicking states isn't accurate, you can correct it. It's just based on what I've observed.
Thanks in advance!
Eliclax