Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java63 private int mDPadState; field in GameView
127 mDPadState |= DPAD_STATE_LEFT; in onKeyDown()
132 mDPadState |= DPAD_STATE_RIGHT; in onKeyDown()
137 mDPadState |= DPAD_STATE_UP; in onKeyDown()
142 mDPadState |= DPAD_STATE_DOWN; in onKeyDown()
169 mDPadState &= ~DPAD_STATE_LEFT; in onKeyUp()
174 mDPadState &= ~DPAD_STATE_RIGHT; in onKeyUp()
179 mDPadState &= ~DPAD_STATE_UP; in onKeyUp()
184 mDPadState &= ~DPAD_STATE_DOWN; in onKeyUp()
227 if (mDPadState != 0) { in onGenericMotionEvent()
[all …]
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java193 currentShip.mDPadState = 0; in onWindowFocusChanged()
663 private int mDPadState; field in GameView.Ship
702 mDPadState &= ~DPAD_STATE_LEFT; in onKeyUp()
707 mDPadState &= ~DPAD_STATE_RIGHT; in onKeyUp()
712 mDPadState &= ~DPAD_STATE_UP; in onKeyUp()
717 mDPadState &= ~DPAD_STATE_DOWN; in onKeyUp()
753 mDPadState |= DPAD_STATE_LEFT; in onKeyDown()
758 mDPadState |= DPAD_STATE_RIGHT; in onKeyDown()
763 mDPadState |= DPAD_STATE_UP; in onKeyDown()
768 mDPadState |= DPAD_STATE_DOWN; in onKeyDown()
[all …]