You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
597 B

#pragma once
#include <cstdint>
#include <vector>
#ifdef USE_SDL3
#include <SDL3/SDL_events.h>
#else
#include <SDL.h>
#endif
namespace devilution {
enum MenuAction : uint8_t {
MenuAction_NONE,
MenuAction_SELECT,
MenuAction_BACK,
MenuAction_DELETE,
MenuAction_UP,
MenuAction_DOWN,
MenuAction_LEFT,
MenuAction_RIGHT,
MenuAction_PAGE_UP,
MenuAction_PAGE_DOWN,
};
std::vector<MenuAction> GetMenuActions(const SDL_Event &event);
/** Menu action from holding the left stick or DPad. */
MenuAction GetMenuHeldUpDownAction();
} // namespace devilution