citra_qt/configuration: misc input tab improvements

* Added a context menu on the buttons including Clear & Restore Default

* Allow clearing (unsetting) inputs. Added a Clear All button

* Allow restoring a single input to default (instead of all)
This commit is contained in:
zhupengfei 2018-08-26 16:23:12 +08:00
parent ca701e2610
commit a3625b544f
No known key found for this signature in database
GPG key ID: 85B82A3E62174206
5 changed files with 119 additions and 19 deletions

View file

@ -73,6 +73,9 @@ private:
void loadConfiguration();
/// Restore all buttons to their default values.
void restoreDefaults();
/// Clear all input configuration
void ClearAll();
/// Update UI to reflect current configuration.
void updateButtonLabels();