Adobe AIR turns Android devices into Motion Sensing Game Controllers

With the latest release of Adobe AIR, you would be able to use Adobe AIR app as a wireless game controller to control desktop or browser games built using Adobe Flash or AIR. The details of AIR Gamepad feature and the APIs are available in Adobe AIR Developer Center.

The key benefit of using the mobile devices as game controllers would be to use the devices’ hardware features like accelerometer, touch sensors and vibration feedback in the game play. AIR Gamepad also provides an API to update the displayed content on the mobile screen, by sending a ByteArray containing an encoded JPEG raster. This enables the Android AIR app to be used as a second screen interface for Flash / AIR desktop games, because the game can dynamically create a BitmapData object and encode it into a JPEG raster using JPEGEncoderOptions API.

An additional benefit of AIR Gamepad functionality is that the AIR Android app is already installed on more than 50 million devices. This implies, about 50 million Android users already have this functionality with them.

Here are a couple of samples that are provided on Adobe AIR Developer Center:



Hungry Hero is an open source mobile game by Hemanth Sharma that was originally made for iOS and Android. The above sample is a port of the same game for desktop Flash, which uses the AIR Gamepad’s tilt gesture (detected from AccelerometerEvents) for moving the character across the screen. The interesting part about this sample is that you would feel the small ‘bumps’ on the mobile device as the Hero eats the burgers and fried, and the ‘thud’ when he hits the helicopters and blimps.

Model Viewer is a sample built using Away 3D framework. The above sample shows how we can interact with a 3D model on the desktop, using the smartphone as a multitouch input device. For example, you can use pinch gesture to zoom the ant model or swipe on the screen to rotate the ant, or use rotate gesture to rotate the ant along z-axis or even move the ant around using two-finger pan gesture. This interaction with the 3D model is much more convenient than using the mouse, because we have a variety of gestures that control the model.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s