Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameControllerInput.java61 private SparseArray<InputDeviceState> mInputDeviceStates;
72 mInputDeviceStates = new SparseArray<InputDeviceState>(); in onCreate()
123 InputDeviceState state = getInputDeviceState(event.getDeviceId()); in dispatchKeyEvent()
148 InputDeviceState state = getInputDeviceState(event.getDeviceId()); in dispatchGenericMotionEvent()
156 private InputDeviceState getInputDeviceState(int deviceId) { in getInputDeviceState()
157 InputDeviceState state = mInputDeviceStates.get(deviceId); in getInputDeviceState()
163 state = new InputDeviceState(device); in getInputDeviceState()
173 InputDeviceState state = getInputDeviceState(deviceId); in onInputDeviceAdded()
180 InputDeviceState state = mInputDeviceStates.get(deviceId); in onInputDeviceChanged()
191 InputDeviceState state = mInputDeviceStates.get(deviceId); in onInputDeviceRemoved()
[all …]