cc3dsfs/include/Menus/ConnectionMenu.hpp
Lorenzooone 268542732f
Implement USB for Old DS and 3DS CCs (#3)
* 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.
2024-06-21 03:12:34 +02:00

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