[App] Add notifications for hotkeys & XNotifyQueueUI

This commit is contained in:
Adrian
2024-08-27 18:15:30 +01:00
committed by Radosław Gliński
parent 9c8a575b76
commit 1a9ff8fe67
8 changed files with 151 additions and 22 deletions

View File

@@ -140,6 +140,8 @@ X_RESULT InputSystem::GetKeystroke(uint32_t user_index, uint32_t flags,
return any_connected ? X_ERROR_EMPTY : X_ERROR_DEVICE_NOT_CONNECTED;
}
bool InputSystem::GetVibrationCvar() { return cvars::vibration; }
void InputSystem::ToggleVibration() {
OVERRIDE_bool(vibration, !cvars::vibration);
// Send instant update to vibration state to prevent awaiting for next tick.

View File

@@ -47,6 +47,8 @@ class InputSystem {
X_RESULT GetKeystroke(uint32_t user_index, uint32_t flags,
X_INPUT_KEYSTROKE* out_keystroke);
bool GetVibrationCvar();
void ToggleVibration();
const std::bitset<max_allowed_controllers> GetConnectedSlots() const {