Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

Get Processing mode from inside code

$
0
0

Hi,

I'm wondering if there is a way to know from the code the mode that it's being currently used. I plan to maintain a code project that would be valid both for java and android modes. For that, I would like to have kind of compiler variables, for example: if (MODE_JAVA) { } else if (MODE_ANDROID) { }

Thank you very much.

Andres


Viewing all articles
Browse latest Browse all 941

Trending Articles