Simulate Key Codes

rashad7

  • Posts: 61
Hi I want to know what are the codes to simulate keys (up, down, left, right).
i know......

flash:
simulateKeyPress(_Control);
iOS:
[self simulateKeyPress:_Control];

i want to know what are the other codes for Andriod and Mobile because i want to test my app on my Andriod.
Thanks in advance


rashad7

  • Posts: 61
Is that general purpose simulate key?

rashad7

  • Posts: 61
does not work gives me errors

vikingpotato

  • Posts: 853
Can you put a screenshot of the behaviour you used it in?

rashad7

  • Posts: 61
i want to know what is the line for Android and mobile, so i  can test it on  my Driod

rob1221

  • *
  • Posts: 9448
2.2 doesn't support Android so I don't know why you're asking about that.  3.0 supports Android, is currently in beta, and requires either iOS Pro or Stencyl Studio.

jpeterson

  • Posts: 17
I have 3.0 beta and no clue how to simulate key press in Android? I get those same errors. Anyone solve this?

rob1221

  • *
  • Posts: 9448
Are you using the block under User Input?