Cleaned up even more joystick-related code...

This commit is contained in:
Charles Dang 2018-04-14 14:56:34 +11:00
parent 50407c1e8e
commit 164b6af766
2 changed files with 0 additions and 26 deletions

View file

@ -198,23 +198,6 @@ hotkey_ptr load_from_config(const config& cfg)
base = std::dynamic_pointer_cast<hotkey_base>(mouse);
mouse->set_button(cfg["button"].to_int());
}
// TODO: add joystick support back
#if 0
const std::string& joystick_cfg = cfg["joystick"];
if (!joystick_cfg.empty()) {
joystick_ = cfg["joystick"].to_int();
}
const std::string& hat = cfg["hat"];
if (!hat.empty()) {
hat_ = cfg["hat"].to_int();
value_ = cfg["value"].to_int();
}
const std::string& button = cfg["button"];
if (!button.empty()) {
button_ = cfg["button"].to_int();
}
#endif
const std::string& key_cfg = cfg["key"];
if (!key_cfg.empty()) {

View file

@ -341,15 +341,6 @@ protected:
virtual bool bindings_equal_helper (hotkey_ptr other) const;
};
/**
* @todo not implemented
*/
class hotkey_joystick: public hotkey_base
{
protected:
int button_;
};
/**
* Create and instantiate a hotkey from a config element.
* @param cfg The config element to read for data.