I have tried to use the controller generator,but I don't know how to write the function to pass values in c2.
in the example of pong is simple-you have
<button id="up">UP</button>
and there is a function which is passed the value in c2
$("#up").on(down_event, function () {
air_console.message(AirConsole.SCREEN {
message: 'up'
});
in controller generator:
<div class="dpad-arrow dpad-arrow-up"></div>
my problem is that I do not know how to write functions.