I've been using Kode Studio for all my Kha development recently and I really like it! Currently I'm using the super nifty Ctrl + B shortcut to build Android projects. I can't seem to find a way to add compiler flags to those builds though. Particularly, I want to be able to write code like this:
#if touch import kha.input.Surface; #else import kha.input.Mouse; #end
And then use a compiler flag to set touch to true on compile. The Haxe Manual says I can do this with a compiler flag of -D touch.
I have 2 questions I suppose:
- Can we set Haxe compiler flags via Kode Studio?
- Is there a better way to get touch specific code into an Android build?
Sorry for all the questions recently but I figured it'd be good to have them recorded here for other noobs like me :)