mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-03-28 21:25:21 -05:00
* Implement USB for Old DS and 3DS CCs * Update Readme and everything else to account for new devices * Handle no serial number * Reduce jitter on lower powered devices Thanks to https://github.com/nn9dev and loopy for older CCs testing There seem to be slowdowns on Windows when using the older CCs. Will need to figure that out.
27 lines
740 B
C++
Executable File
27 lines
740 B
C++
Executable File
#ifndef __CONNECTIONMENU_HPP
|
|
#define __CONNECTIONMENU_HPP
|
|
|
|
#include "OptionSelectionMenu.hpp"
|
|
|
|
#include "capture_structs.hpp"
|
|
|
|
#define CONNECTION_MENU_NO_ACTION (-1)
|
|
|
|
class ConnectionMenu : public OptionSelectionMenu {
|
|
public:
|
|
ConnectionMenu(bool font_load_success, sf::Font &text_font);
|
|
~ConnectionMenu();
|
|
void prepare(float scaling_factor, int view_size_x, int view_size_y);
|
|
void insert_data(std::vector<CaptureDevice> *devices_list);
|
|
int selected_index = CONNECTION_MENU_NO_ACTION;
|
|
void reset_output_option();
|
|
protected:
|
|
void set_output_option(int index, int action);
|
|
int get_num_options();
|
|
std::string get_string_option(int index, int action);
|
|
void class_setup();
|
|
private:
|
|
std::vector<CaptureDevice> *devices_list;
|
|
};
|
|
#endif
|