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

Method cursorValid

src/components/ComponentListComponent.cpp:249–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249bool ComponentListComponent::cursorValid()
250{
251 if(mCursor.x() < 0 || mCursor.y() < 0 || mCursor.x() >= mGridSize.x() || mCursor.y() >= mGridSize.y())
252 return false;
253
254 return getCell(mCursor.x(), mCursor.y()) != NULL;
255}
256
257void ComponentListComponent::update(int deltaTime)
258{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected