Get it to compile for windows in debug mode
This commit is contained in:
+2
-3
@@ -76,6 +76,8 @@ struct pair_session_t {
|
||||
// uniqueID, session
|
||||
std::unordered_map<std::string, pair_session_t> map_id_sess;
|
||||
std::unordered_map<std::string, client_t> map_id_client;
|
||||
std::string local_ip;
|
||||
net::net_e origin_pin_allowed;
|
||||
|
||||
using args_t = SimpleWeb::CaseInsensitiveMultimap;
|
||||
using resp_https_t = std::shared_ptr<typename SimpleWeb::ServerBase<SimpleWeb::HTTPS>::Response>;
|
||||
@@ -88,9 +90,6 @@ enum class op_e {
|
||||
REMOVE
|
||||
};
|
||||
|
||||
std::string local_ip;
|
||||
net::net_e origin_pin_allowed;
|
||||
|
||||
void save_devices() {
|
||||
pt::ptree root;
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
#include "common.h"
|
||||
|
||||
namespace platf {
|
||||
using namespace std::literals;
|
||||
std::string get_local_ip() { return "192.168.0.119"s; }
|
||||
|
||||
std::unique_ptr<mic_t> microphone() { return nullptr; }
|
||||
std::unique_ptr<display_t> display() { return nullptr; }
|
||||
|
||||
input_t input() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void move_mouse(input_t &input, int deltaX, int deltaY) {}
|
||||
void button_mouse(input_t &input, int button, bool release) {}
|
||||
void scroll(input_t &input, int distance) {}
|
||||
void keyboard(input_t &input, uint16_t modcode, bool release) {}
|
||||
|
||||
namespace gp {
|
||||
void dpad_y(input_t &input, int button_state) {} // up pressed == -1, down pressed == 1, else 0
|
||||
void dpad_x(input_t &input, int button_state) {} // left pressed == -1, right pressed == 1, else 0
|
||||
void start(input_t &input, int button_down) {}
|
||||
void back(input_t &input, int button_down) {}
|
||||
void left_stick(input_t &input, int button_down) {}
|
||||
void right_stick(input_t &input, int button_down) {}
|
||||
void left_button(input_t &input, int button_down) {}
|
||||
void right_button(input_t &input, int button_down) {}
|
||||
void home(input_t &input, int button_down) {}
|
||||
void a(input_t &input, int button_down) {}
|
||||
void b(input_t &input, int button_down) {}
|
||||
void x(input_t &input, int button_down) {}
|
||||
void y(input_t &input, int button_down) {}
|
||||
void left_trigger(input_t &input, std::uint8_t abs_z) {}
|
||||
void right_trigger(input_t &input, std::uint8_t abs_z) {}
|
||||
void left_stick_x(input_t &input, std::int16_t x) {}
|
||||
void left_stick_y(input_t &input, std::int16_t y) {}
|
||||
void right_stick_x(input_t &input, std::int16_t x) {}
|
||||
void right_stick_y(input_t &input, std::int16_t y) {}
|
||||
void sync(input_t &input) {}
|
||||
}
|
||||
|
||||
void freeInput(void*) {}
|
||||
}
|
||||
Reference in New Issue
Block a user