| 332 | } |
| 333 | |
| 334 | void ControlStepper::onTouchEnded(Touch* pTouch, Event* /*pEvent*/) |
| 335 | { |
| 336 | _minusSprite->setColor(Color3B::WHITE); |
| 337 | _plusSprite->setColor(Color3B::WHITE); |
| 338 | |
| 339 | if (_autorepeat) |
| 340 | { |
| 341 | this->stopAutorepeat(); |
| 342 | } |
| 343 | |
| 344 | if (this->isTouchInside(pTouch)) |
| 345 | { |
| 346 | Vec2 location = this->getTouchLocation(pTouch); |
| 347 | |
| 348 | this->setValue(_value + |
| 349 | ((location.x < _minusSprite->getContentSize().width) ? (0.0 - _stepValue) : _stepValue)); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | NS_AX_EXT_END |
nothing calls this directly
no test coverage detected