mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2025-06-18 16:45:39 -04:00
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
#ifndef __INPUTMENU_HPP
|
|
#define __INPUTMENU_HPP
|
|
|
|
#include "OptionSelectionMenu.hpp"
|
|
#include <chrono>
|
|
|
|
#include "TextRectangle.hpp"
|
|
#include "sfml_gfx_structs.hpp"
|
|
#include "display_structs.hpp"
|
|
|
|
enum InputMenuOutAction{
|
|
INPUT_MENU_NO_ACTION,
|
|
INPUT_MENU_BACK,
|
|
INPUT_MENU_SHORTCUT_SETTINGS,
|
|
INPUT_MENU_TOGGLE_BUTTONS,
|
|
INPUT_MENU_TOGGLE_JOYSTICK,
|
|
INPUT_MENU_TOGGLE_KEYBOARD,
|
|
INPUT_MENU_TOGGLE_MOUSE,
|
|
INPUT_MENU_TOGGLE_FAST_POLL,
|
|
};
|
|
|
|
class InputMenu : public OptionSelectionMenu {
|
|
public:
|
|
InputMenu(TextRectanglePool* text_pool);
|
|
~InputMenu();
|
|
void prepare(float scaling_factor, int view_size_x, int view_size_y, InputData* input_data);
|
|
void insert_data(bool enabled_shortcuts, bool enabled_extra_buttons);
|
|
InputMenuOutAction selected_index = InputMenuOutAction::INPUT_MENU_NO_ACTION;
|
|
void reset_output_option();
|
|
protected:
|
|
void set_output_option(int index, int action);
|
|
size_t get_num_options();
|
|
std::string get_string_option(int index, int action);
|
|
void class_setup();
|
|
private:
|
|
int *options_indexes;
|
|
size_t num_enabled_options;
|
|
};
|
|
#endif
|