CallClick
Introduction
Code Example
bool wasSpacePushed = InputManager.Keyboard.KeyPushed(Keys.Space);
if(wasKeyPushed)
{
WindowInstance.CallClick();
}Last updated
Was this helpful?
The CallClick method forces the implementing IWindow to raise its Click event. This can be used to test clicking events or to allow other input or logic to simulate a button click.
The following calls click when the space bar is pressed.
bool wasSpacePushed = InputManager.Keyboard.KeyPushed(Keys.Space);
if(wasKeyPushed)
{
WindowInstance.CallClick();
}Last updated
Was this helpful?
Was this helpful?