| 185 | } |
| 186 | |
| 187 | void ComponentListComponent::resetCursor() |
| 188 | { |
| 189 | if(mEntries.size() == 0) |
| 190 | { |
| 191 | mCursor = Eigen::Vector2i(-1, -1); |
| 192 | return; |
| 193 | } |
| 194 | |
| 195 | mCursor << mEntries.at(0).pos[0], mEntries.at(0).pos[1]; |
| 196 | } |
| 197 | |
| 198 | void ComponentListComponent::moveCursor(Eigen::Vector2i dir) |
| 199 | { |