Why does'nt work ? (key pressed)

You should file a bug then, Rob, because I’ve never been able to get key events in iOS simulator skins!

Alex are you using Windows or macOS? 

I normally use Windows, but just fired up my Macbook and tested and, yes indeed, key strikes are being registered there.

So, I guess I missed the “gotcha” about keys not working in iOS skins on Win. My bad!

To the original poster…@gaelsev, are you using Corona on Windows or on macOS?

Rob

Hi,

Sorry for the late and thank you for your support.

But print(jouer.niveau) is not the problem, if i remove this line, it’s doesn’t work also.

I’m playing corona on Windows 10 x64

Do not remove it, replace it with print(joueur.niveau), you were missing a ‘u’.

The problem is that key events don’t register for iOS simulator skins on Windows, as discussed above.

@sdktester15

Yes i know bro but is not the probleme.

I dont understand why events key is not working on simulator, why you dont fix this ? I must to build .exe to try the program is not good :confused:

Alex explained this above.

The simulator on Windows looks at the skin to determine features. When it sees iOS, it says “iOS doesn’t support key events” so it doesn’t make them available to the simulator. To solve this, you simply need to change skins in the simulator to something not iOS related.

Rob

Oki sorry a didnt understand it like that because my language is french.

I will try another skin thx u

I tried with another skin, it’s work. Thank you.