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.
28 lines
500 B
28 lines
500 B
#pragma once |
|
|
|
#include <SDL.h> |
|
#include <cstdint> |
|
|
|
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, |
|
}; |
|
|
|
MenuAction GetMenuAction(const SDL_Event &event); |
|
|
|
/** Menu action from holding the left stick or DPad. */ |
|
MenuAction GetMenuHeldUpDownAction(); |
|
|
|
} // namespace devilution
|
|
|