Skip to content

Commit

Permalink
Update API.hpp (#314)
Browse files Browse the repository at this point in the history
Fixed problem trigger_haptic_vibration as parameters were out of sync with the actual function being called in api.h. This caused compiler warnings compiling the SDK in plugins.
  • Loading branch information
mark-mon authored Jan 20, 2025
1 parent d75a7a3 commit a87bce2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/uevr/API.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1340,9 +1340,9 @@ class API {
return result;
}

static void trigger_haptic_vibration(UEVR_TrackedDeviceIndex index, float amplitude, float frequency, float duration, UEVR_InputSourceHandle source) {
static void trigger_haptic_vibration(float seconds_from_now, float amplitude, float frequency, float duration, UEVR_InputSourceHandle source) {
static const auto fn = initialize()->trigger_haptic_vibration;
fn(index, amplitude, frequency, duration, source);
fn(seconds_from_now, amplitude, frequency, duration, source);
}

static bool is_using_contriollers() {
Expand Down Expand Up @@ -1672,4 +1672,4 @@ class API {
const UEVR_PluginInitializeParam* m_param;
const UEVR_SDKData* m_sdk;
};
}
}

0 comments on commit a87bce2

Please sign in to comment.