Poke_Transporter_GB/include/vertical_menu_cursor_handler.h
Philippe Symons b84939b49a Add debug menu UI when you press L+R in the main menu.
It's only the UI yet. It only shows a couple of dummy options right now.
2026-03-09 19:56:32 +01:00

24 lines
635 B
C++

#ifndef VERTICAL_MENU_CURSOR_HANDLER_H
#define VERTICAL_MENU_CURSOR_HANDLER_H
#include "vertical_menu.h"
/**
* @brief This class handles the cursor behavior for a vertical menu.
*/
class vertical_menu_cursor_handler : public i_vertical_menu_state_changed_handler
{
public:
vertical_menu_cursor_handler(s16 cursor_offset_x, s16 cursor_offset_y);
virtual ~vertical_menu_cursor_handler();
void on_show() override;
void on_hide() override;
void on_selection_changed(unsigned new_index, unsigned x, unsigned y) override;
protected:
private:
const s16 cursor_offset_x_;
const s16 cursor_offset_y_;
};
#endif