Merge pull request #5163 from z87/input-touch-mapping

input: allow mapping buttons to touchscreen
This commit is contained in:
Pengfei Zhu 2020-05-31 22:23:02 +08:00 committed by GitHub
commit 81a1e5680f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 1221 additions and 6 deletions

View file

@ -112,11 +112,18 @@ struct InputProfile {
std::array<std::string, NativeAnalog::NumAnalogs> analogs;
std::string motion_device;
std::string touch_device;
bool use_touch_from_button;
int touch_from_button_map_index;
std::string udp_input_address;
u16 udp_input_port;
u8 udp_pad_index;
};
struct TouchFromButtonMap {
std::string name;
std::vector<std::string> buttons;
};
struct Values {
// CheckNew3DS
bool is_new_3ds;
@ -125,6 +132,7 @@ struct Values {
InputProfile current_input_profile; ///< The current input profile
int current_input_profile_index; ///< The current input profile index
std::vector<InputProfile> input_profiles; ///< The list of input profiles
std::vector<TouchFromButtonMap> touch_from_button_maps;
// Core
bool use_cpu_jit;