[HID] Added option to turn off vibration

This commit is contained in:
Gliniak
2021-05-24 15:09:40 +02:00
parent 7977d7ab98
commit 613f5ebe02
4 changed files with 46 additions and 2 deletions

View File

@@ -44,10 +44,14 @@ class InputSystem {
X_RESULT GetKeystroke(uint32_t user_index, uint32_t flags,
X_INPUT_KEYSTROKE* out_keystroke);
void ToggleVibration();
private:
xe::ui::Window* window_ = nullptr;
std::vector<std::unique_ptr<InputDriver>> drivers_;
X_INPUT_VIBRATION ModifyVibrationLevel(X_INPUT_VIBRATION* vibration);
};
} // namespace hid