Upload

Loading icon Loading...

This video is unavailable.

Nexus Q Pong

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like Det Ansinn's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike Det Ansinn's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add Det Ansinn's video to your playlist.

Published on Jul 12, 2012

Unlocked Nexus Q running a pong-like application using the Nexus Q as a controller. Code snippet included at the end of the video.

Hacked at BrickSimple LLC in Doylestown, PA - mobile development shop specializing in Android and iOS application development. Yes, we are hiring. jobs@bricksimple.com

Code Snippet:

@Override
public boolean dispatchKeyEvent(KeyEvent event) {
int action = event.getAction();
int keyCode = event.getKeyCode();

switch (keyCode) { case KeyEvent.KEYCODE_VOLUME_UP:
if (action == KeyEvent.ACTION_DOWN) {
...
}
return true;
case KeyEvent.KEYCODE_VOLUME_DOWN:
if (action == KeyEvent.ACTION_DOWN) {
...
}
return true;
case KeyEvent.KEYCODE_VOLUME_MUTE:
if (action == KeyEvent.ACTION_DOWN) { ...
}
return true;
default:
return super.dispatchKeyEvent(event);
}
}

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Loading icon Loading...

Advertisement
Loading...
Working...
Sign in to add this to Watch Later

Add to