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

Method update

src/components/GuiFastSelect.cpp:105–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void GuiFastSelect::update(int deltaTime)
106{
107 if(mScrollOffset != 0)
108 {
109 mScrollTimer += deltaTime;
110
111 if(!mScrolling && mScrollTimer >= SCROLLDELAY)
112 {
113 mScrolling = true;
114 mScrollTimer = SCROLLSPEED;
115 }
116
117 if(mScrolling && mScrollTimer >= SCROLLSPEED)
118 {
119 mScrollTimer = 0;
120 scroll();
121 }
122 }
123}
124
125void GuiFastSelect::scroll()
126{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected