How do we detect if app is running on MAC or device?

TwistedMechTwistedMech Member Posts: 408
edited November -1 in Tech Support
I am working on a game which uses the accelerometer. Problem is that it will be 0 if running on a MAC and on my actor, I constrain this value to a variable. At the moment I have a game var IsOnMAC true/false which I set when testing on iphone or mac but want to set this automatically.

Anyone have any ideas?

Comments

  • TwistedMechTwistedMech Member Posts: 408
    had a thought. On main title screen, I can just check for any x or y not 0 value and set the game.isxxxx to true/false.
  • AtlantenAtlanten Member, PRO Posts: 56
    I was in the same situation, solved it with a rule like this:

    If accelerometer ≠ 0, then constrain attribute to accelerometer
Sign In or Register to comment.