Works but this code not show texture “Pressed” when execute, becouse it is fake press (not by mouse). How simulate mouse press button with animation effect ?
Simulate pressed works (thanks) but not showing animation effect. Not show pressed image and back to normal image.
Mefihl | 2016-08-21 13:05
Note the button state will reset to ‘normal’ if your mouse passes over the game window.
ericdl | 2016-08-21 14:50
Here is a example project to show how it works. Keep in mind, if the button state is ‘pressed’, then it will reset to ‘normal’ if mouse movement is detected passing over the game window.