BsHandleSlider.cpp 350 B

123456789101112131415161718
  1. #include "BsHandleSlider.h"
  2. namespace BansheeEngine
  3. {
  4. HandleSlider::HandleSlider(bool fixedScale, float snapValue)
  5. :mFixedScale(fixedScale), mSnapValue(snapValue)
  6. {
  7. }
  8. void HandleSlider::registerDrag(const Vector2I& pointerPos)
  9. {
  10. assert(getState() == State::Active);
  11. mLastPointerPos = mCurPointerPos;
  12. mCurPointerPos = pointerPos;
  13. }
  14. }