Psychokiller1888 I have it like this:
var down_event = isMobile() ? 'touchstart' : 'mousedown';
var up_event = isMobile() ? 'touchend' : 'mouseup';
$("#Start").on(down_event, function () {
air_console.message(AirConsole.SCREEN, {
message: 'Start'
});
});
$("#Back").on(down_event, function () {
air_console.message(AirConsole.SCREEN, {
message: 'Back'
});
});
$("#Abutton").on(down_event, function () {
air_console.message(AirConsole.SCREEN, {
message: 'Abutton'
});
});
$("#Bbutton").on(down_event, function () {
air_console.message(AirConsole.SCREEN, {
message: 'Bbutton'
});
});
$("#Bbutton").on(up_event, function () {
air_console.message(AirConsole.SCREEN, {
message: 'stopshoot'
});
});