+ case SDL_MOUSEWHEEL:
+ if (event.wheel.y < 0) {
+ ++place_id;
+ if (size_t(place_id) >= world.BlockTypes().Size()) {
+ place_id = 1;
+ }
+ hud.Display(*world.BlockTypes()[place_id]);
+ } else if (event.wheel.y > 0) {
+ --place_id;
+ if (place_id <= 0) {
+ place_id = world.BlockTypes().Size() - 1;
+ }
+ hud.Display(*world.BlockTypes()[place_id]);
+ }
+ break;