Home
last modified time | relevance | path

Searched refs:mState (Results 1 – 25 of 32) sorted by relevance

12

/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/linux/
DLinuxMouse.cpp48 mState.clear(); in _initialize()
112 mState.X.rel = 0; in capture()
113 mState.Y.rel = 0; in capture()
114 mState.Z.rel = 0; in capture()
123 mListener->mouseMoved( MouseEvent( this, mState ) ); in capture()
169 if(event.xmotion.x < 5 || event.xmotion.x > mState.width - 5 || in _processXEvents()
170 event.xmotion.y < 5 || event.xmotion.y > mState.height - 5) in _processXEvents()
182 mState.X.abs += dx; in _processXEvents()
183 mState.Y.abs += dy; in _processXEvents()
184 mState.X.rel += dx; in _processXEvents()
[all …]
DLinuxJoyStickEvents.cpp52 mState.mAxes.clear(); in LinuxJoyStick()
53 mState.mAxes.resize(js.axes); in LinuxJoyStick()
54 mState.mButtons.clear(); in LinuxJoyStick()
55 mState.mButtons.resize(js.buttons); in LinuxJoyStick()
76 mState.mAxes.resize(mAxisMap.size()); in _initialize()
77 mState.clear(); in _initialize()
121 mState.mButtons[button] = true; in capture()
123 if(!mListener->buttonPressed(JoyStickEvent(this,mState), button)) return; in capture()
127 mState.mButtons[button] = false; in capture()
129 if(!mListener->buttonReleased(JoyStickEvent(this,mState), button)) return; in capture()
[all …]
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/win32/
DWin32Mouse.cpp48 mState.clear(); in _initialize()
92 mState.X.rel = mState.Y.rel = mState.Z.rel = 0; in capture()
144 mState.X.rel += diBuff[i].dwData; in capture()
148 mState.Y.rel += diBuff[i].dwData; in capture()
152 mState.Z.rel += diBuff[i].dwData; in capture()
167 mState.X.abs = point.x; in capture()
168 mState.Y.abs = point.y; in capture()
172 mState.X.abs += mState.X.rel; in capture()
173 mState.Y.abs += mState.Y.rel; in capture()
175 mState.Z.abs += mState.Z.rel; in capture()
[all …]
DWin32JoyStick.cpp101 mState.mAxes.clear(); in _initialize()
131 mState.clear(); in _initialize()
144 mState.mButtons.resize(XINPUT_TRANSLATED_BUTTON_COUNT); in _enumerate()
145 mState.mAxes.resize(XINPUT_TRANSLATED_AXIS_COUNT); in _enumerate()
156 mState.mButtons.resize(mDIJoyCaps.dwButtons); in _enumerate()
157 mState.mAxes.resize(mDIJoyCaps.dwAxes); in _enumerate()
190 _this->mState.mAxes.pop_back(); in DIEnumDeviceObjectsCallback()
297 mState.mSliders[0].abX = diBuff[i].dwData; in capture()
301 mState.mSliders[0].abY = diBuff[i].dwData; in capture()
322 mState.mSliders[1].abX = diBuff[i].dwData; in capture()
[all …]
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/mac/
DMacMouse.cpp85 mState.clear(); in _initialize()
154 mState.X.rel = 0; in capture()
155 mState.Y.rel = 0; in capture()
156 mState.Z.rel = 0; in capture()
163 mState.X.rel = mTempState.X.rel; in capture()
164 mState.Y.rel = mTempState.Y.rel; in capture()
165 mState.Z.rel = mTempState.Z.rel; in capture()
168 mState.X.abs += mTempState.X.rel; in capture()
169 mState.Y.abs += mTempState.Y.rel; in capture()
171 if(mState.X.abs > mState.width) in capture()
[all …]
DMacJoyStick.cpp63 mState.mAxes.clear(); in _initialize()
68 mState.clear(); in _initialize()
72 mState.mButtons.resize(mInfo->numButtons); in _initialize()
73 mState.mAxes.resize(mInfo->numAxes); in _initialize()
107 mState.mButtons[button] = (event.value == 1); in capture()
112 mListener->buttonPressed(JoyStickEvent(this, mState), button); in capture()
114 mListener->buttonReleased(JoyStickEvent(this, mState), button); in capture()
127 mState.mAxes[axis].abs = -JoyStick::MIN_AXIS - (JoyStick::MAX_AXIS * 2 * proportion); in capture()
129 if(mBuffered && mListener) mListener->axisMoved(JoyStickEvent(this, mState), axis); in capture()
DCocoaJoyStick.mm63 mState.mAxes.clear();
68 mState.clear();
72 mState.mButtons.resize(mInfo->numButtons);
73 mState.mAxes.resize(mInfo->numAxes);
107 mState.mButtons[button] = (event.value == 1);
112 mListener->buttonPressed(JoyStickEvent(this, mState), button);
114 mListener->buttonReleased(JoyStickEvent(this, mState), button);
127 mState.mAxes[axis].abs = -JoyStick::MIN_AXIS - (JoyStick::MAX_AXIS * 2 * proportion);
129 if(mBuffered && mListener) mListener->axisMoved(JoyStickEvent(this, mState), axis);
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/SDL/
DSDLMouse.cpp42 mState.clear(); in _initialize()
66 mState.relX = mState.relY = mState.relZ = 0; in capture()
84 mState.buttons |= (1 << ButtonMask[sdlButton]); in capture()
86 if( listener->mousePressed(MouseEvent(this,0,mState), ButtonMask[sdlButton]) == false ) in capture()
93 mState.relZ += 120; in capture()
95 mState.relZ -= 120; in capture()
104 mState.buttons &= ~(1 << ButtonMask[sdlButton]); in capture()
106 if( listener->mouseReleased(MouseEvent(this,0,mState), ButtonMask[sdlButton]) == false ) in capture()
117 SDL_GetMouseState( &mState.abX, &mState.abY ); in capture()
118 SDL_GetRelativeMouseState( &mState.relX, &mState.relY ); in capture()
[all …]
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/win32/extras/WiiMote/
DOISWiiMote.cpp80 mState.mVectors.clear(); in _initialize()
81 mState.mButtons.clear(); in _initialize()
82 mState.mAxes.clear(); in _initialize()
86 mState.mVectors.resize(2); in _initialize()
87 mState.mButtons.resize(9); in _initialize()
88 mState.mAxes.resize(2); in _initialize()
89 mState.mAxes[0].absOnly = true; in _initialize()
90 mState.mAxes[1].absOnly = true; in _initialize()
94 mState.mVectors.resize(1); in _initialize()
95 mState.mButtons.resize(7); in _initialize()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DDoorAnimationComponent.java40 private int mState; field in DoorAnimationComponent
56 mState = STATE_CLOSED; in reset()
73 mState = STATE_OPEN; in open()
79 if (mState == STATE_CLOSING) { in open()
91 mState = STATE_OPENING; in open()
112 mState = STATE_CLOSED; in close()
118 if (mState == STATE_OPENING) { in close()
122 mState = STATE_CLOSING; in close()
145 && (mState == STATE_CLOSED || mState == STATE_CLOSING)) { in update()
149 && (mState == STATE_OPEN || mState == STATE_OPENING)) { in update()
[all …]
DEnemyAnimationComponent.java45 private AnimationState mState; field in EnemyAnimationComponent
56 mState = AnimationState.IDLING; in reset()
69 switch(mState) { in update()
77 mState = AnimationState.ATTACKING; in update()
79 mState = AnimationState.HIDING; in update()
81 mState = AnimationState.MOVING; in update()
98 mState = AnimationState.ATTACKING; in update()
100 mState = AnimationState.HIDING; in update()
102 mState = AnimationState.IDLING; in update()
109 mState = AnimationState.IDLING; in update()
[all …]
DSleeperComponent.java34 private int mState; field in SleeperComponent
49 mState = STATE_SLEEPING; in reset()
63 mState = STATE_SLEEPING; in update()
67 switch(mState) { in update()
70 mState = STATE_WAKING; in update()
78 mState = STATE_ATTACKING; in update()
86 mState = STATE_SLAM; in update()
93 mState = STATE_SLEEPING; in update()
DPopOutComponent.java35 private int mState; field in PopOutComponent
56 mState = STATE_HIDDEN; in reset()
74 switch(mState) { in update()
78 mState = STATE_VISIBLE; in update()
85 mState = STATE_HIDDEN; in update()
89 mState = STATE_ATTACKING; in update()
95 mState = STATE_VISIBLE; in update()
DPlayerComponent.java65 private State mState; field in PlayerComponent
100 mState = State.MOVE; in reset()
228 if (mInventory != null && mState != State.WIN) { in update()
258 if (mInvincibleEndTime > 0.0f && (mInvincibleEndTime < gameTime || mState == State.DEAD)) { in update()
268 if (mState != State.DEAD && mState != State.WIN ) { in update()
275 } else if (mState != State.HIT_REACT in update()
292 switch(mState) { in update()
328 mState = State.MOVE; in gotoMove()
377 mState = State.STOMP; in gotoStomp()
427 if (mState != State.FROZEN) { in gotoHitReact()
[all …]
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/extras/LIRC/
DOISLIRC.cpp39 mState.mButtons.resize(mInfo.buttons); in LIRCControl()
50 mState.clear(); in _initialize()
80 mState.mButtons[events[i].button] = true; in capture()
81 if( !mListener->buttonPressed(JoyStickEvent(this, mState), events[i].button) ) in capture()
84 mState.mButtons[events[i].button] = false; in capture()
85 if( !mListener->buttonReleased(JoyStickEvent(this, mState), events[i].button) ) in capture()
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/iphone/
DiPhoneAccelerometer.mm51 mState.mVectors.resize(1);
52 mState.clear();
75 mState.clear();
76 mState.mVectors[0] = mTempState;
79 mListener->axisMoved(JoyStickEvent(this, mState), 0);
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/
DOISJoyStick.cpp42 case OIS_Button: return (int)mState.mButtons.size(); in getNumberOfComponents()
43 case OIS_Axis: return (int)mState.mAxes.size(); in getNumberOfComponents()
46 case OIS_Vector3: return (int)mState.mVectors.size(); in getNumberOfComponents()
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
DPairingSession.java178 protected ProtocolState mState; field in PairingSession
206 mState = ProtocolState.STATE_UNINITIALIZED; in PairingSession()
313 if (mState != ProtocolState.STATE_UNINITIALIZED) { in addInputEncoding()
338 if (mState != ProtocolState.STATE_UNINITIALIZED) { in addOutputEncoding()
352 mState = newState; in setState()
433 switch (mState) { in hasCompleted()
443 return mState == ProtocolState.STATE_SUCCESS; in hasSucceeded()
461 } else if (mState != ProtocolState.STATE_PAIRING) { in setSecret()
/external/opencv/cv/src/
Dcvmoments.cpp518 cvGetHuMoments( CvMoments * mState, CvHuMoments * HuState ) in cvGetHuMoments() argument
524 if( !mState || !HuState ) in cvGetHuMoments()
528 double m00s = mState->inv_sqrt_m00, m00 = m00s * m00s, s2 = m00 * m00, s3 = s2 * m00s; in cvGetHuMoments()
530 double nu20 = mState->mu20 * s2, in cvGetHuMoments()
531 nu11 = mState->mu11 * s2, in cvGetHuMoments()
532 nu02 = mState->mu02 * s2, in cvGetHuMoments()
533 nu30 = mState->mu30 * s3, in cvGetHuMoments()
534 nu21 = mState->mu21 * s3, nu12 = mState->mu12 * s3, nu03 = mState->mu03 * s3; in cvGetHuMoments()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyEvents.java163 private int mState; field in TelephonyEvents.DataConnectionStateEvent
172 mState = state; in DataConnectionStateEvent()
180 return mState; in getState()
201 mState); in toJSON()
/external/opencv3/modules/java/generator/src/java/
Dandroid+CameraBridgeViewBase.java38 private int mState = STOPPED; field in CameraBridgeViewBase
310 if (targetState != mState) { in checkCurrentState()
312 processExitState(mState); in checkCurrentState()
313 mState = targetState; in checkCurrentState()
314 processEnterState(mState); in checkCurrentState()
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/includes/
DOISMouse.h125 const MouseState& getMouseState() const { return mState; } in getMouseState()
132 MouseState mState; variable
DOISJoyStick.h201 const JoyStickState& getJoyStickState() const { return mState; } in getJoyStickState()
219 JoyStickState mState; variable
/external/opencv3/modules/imgproc/src/
Dmoments.cpp820 CV_IMPL void cvGetHuMoments( CvMoments * mState, CvHuMoments * HuState ) in cvGetHuMoments() argument
822 if( !mState || !HuState ) in cvGetHuMoments()
825 double m00s = mState->inv_sqrt_m00, m00 = m00s * m00s, s2 = m00 * m00, s3 = s2 * m00s; in cvGetHuMoments()
827 double nu20 = mState->mu20 * s2, in cvGetHuMoments()
828 nu11 = mState->mu11 * s2, in cvGetHuMoments()
829 nu02 = mState->mu02 * s2, in cvGetHuMoments()
830 nu30 = mState->mu30 * s3, in cvGetHuMoments()
831 nu21 = mState->mu21 * s3, nu12 = mState->mu12 * s3, nu03 = mState->mu03 * s3; in cvGetHuMoments()
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/includes/mac/
DCocoaMouse.h55 MouseState * getMouseStatePtr() { return &(mState); } in getMouseStatePtr()

12