MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / update

Method update

src/components/SliderComponent.cpp:47–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void SliderComponent::update(int deltaTime)
48{
49 if(mMoveRate != 0)
50 {
51 if(mRepeatWaitTimer == 0)
52 mValue += mMoveRate;
53 else if(mRepeatWaitTimer >= 450)
54 mValue += mMoveRate * deltaTime * mMoveScale;
55
56 if(mValue < mMin)
57 mValue = mMin;
58 if(mValue > mMax)
59 mValue = mMax;
60
61 if(mRepeatWaitTimer < 450)
62 mRepeatWaitTimer += deltaTime;
63 }
64
65 GuiComponent::update(deltaTime);
66}
67
68void SliderComponent::render(const Eigen::Affine3f& parentTrans)
69{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected