Initial Xinput ISteamInput/ISteamController support.

This commit is contained in:
Mr_Goldberg 2019-09-10 14:54:54 -04:00
parent 4db580d945
commit 2af93427fe
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
12 changed files with 1814 additions and 56 deletions

View file

@ -58,6 +58,12 @@ struct Image_Data {
std::string data;
};
struct Controller_Settings {
std::map<std::string, std::map<std::string, std::pair<std::set<std::string>, std::string>>> action_sets = {{"ship_controls", {{"analog_controls", {{"LJOY"}, "joystick_move"}}}}, {"menu_controls", {{"menu_up", {{"DLJOYUP", "DUP"}, ""}}, {"menu_down", {{"DLJOYDOWN", "DDOWN"}, ""}}}}};
std::map<std::string, std::string> action_set_layer_parents;
std::map<std::string, std::map<std::string, std::pair<std::set<std::string>, std::string>>> action_set_layers;
};
class Settings {
CSteamID steam_id;
CGameID game_id;
@ -126,6 +132,9 @@ public:
//images
std::map<int, struct Image_Data> images;
int add_image(std::string data, uint32 width, uint32 height);
//controller
struct Controller_Settings controller_settings;
};
#endif