Home
last modified time | relevance | path

Searched refs:mKeys (Results 1 – 1 of 1) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameControllerInput.java206 private final SparseIntArray mKeys; field in GameControllerInput.InputDeviceState
228 mKeys = new SparseIntArray(); in InputDeviceState()
248 return mKeys.size(); in getKeyCount()
252 return mKeys.keyAt(keyIndex); in getKeyCode()
256 return mKeys.valueAt(keyIndex) != 0; in isKeyPressed()
264 mKeys.put(keyCode, 1); in onKeyDown()
275 int index = mKeys.indexOfKey(keyCode); in onKeyUp()
278 mKeys.put(keyCode, 0); in onKeyUp()