Adding a listener on the entire display

How can I add a listener, not on a specific object, but on the entire display? So that if the user touches anywhere on the display, it is recognized? 

I am a bit familiar with as3, and there I would write “stage.addEventListener” , but I guess there is nothing called stage in Corona? =)

Any help would be veyr appreciated! :slight_smile:

Hi @simonmho,

Yes, there is a “stage” in Corona. It’s the parent display group for all other display objects, and it’s referenced via either:

[lua]

display.currentStage

–or

display.getCurrentStage()

[/lua]

Best regards,

Brent

Hi @simonmho,

Yes, there is a “stage” in Corona. It’s the parent display group for all other display objects, and it’s referenced via either:

[lua]

display.currentStage

–or

display.getCurrentStage()

[/lua]

Best regards,

Brent