The Visual Game Controller app is designed to run on an Android TV device and displays visual feedback for the buttons of an attached game controller.
Please read and follow the steps in the CONTRIBUTING.md
See LICENSE
Google Developers Page on Google+ https://plus.google.com/+GoogleDevelopers/posts
compileSdkVersion 19
minSdkVersion 10
targetSdkVersion 19
compile 'com.android.support:appcompat-v7:19.0.1'
package com.example.android.visualgamecontroller
versionCode 1
versionName 1.0
An example full-screen activity that shows and hides the system UI (i.e. status bar and navigation/system bar) with user interaction.
@see SystemUiHider
Whether or not the system UI should be auto-hidden after {@link #AUTO_HIDE_DELAY_MILLIS} milliseconds.
If {@link #AUTO_HIDE} is set, the number of milliseconds to wait after user interaction before hiding the system UI.
If set, will toggle the system UI visibility upon interaction. Otherwise, will show the system UI visibility upon interaction.
The flags to pass to {@link SystemUiHider#getInstance}.
The instance of the {@link SystemUiHider} for this activity.
Check for any game controllers that are connected already.
Touch listener to use for in-layout UI controls to delay hiding the system UI. This is to prevent the jarring behavior of controls going away while interacting with activity UI.
Schedules a call to hide() in [delay] milliseconds, canceling any previously scheduled calls.
Get centered position for axis input by considering flat area.
@param event
@param device
@param axis
@return
Utility method to determine if input device is a gamepad.
@param device
@return
Get the array index for the key code.
@param keyCode
@return