B4J Question B4X GameViewHelper.AddKeyListener

Coldrestart

Member
Licensed User
Longtime User
Hello,

Based on the game example, it is possible to capture keypresses using :
B4X:
GameViewHelper.AddKeyListener("GVH", Main.MainForm)

How can I use this in B4Xpages?
What parameter do I need to pass to link my form? B4XPages.MainPage or Root doesn't work.

The example of Erel:

Thanks in advance.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…