mirror of
https://github.com/rock88/moonlight-nx
synced 2024-11-10 06:14:15 +00:00
libnx 4.0.0 fixes
This commit is contained in:
parent
b51a352d27
commit
5000d74d0a
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
#ifdef __SWITCH__
|
||||
#include <switch.h>
|
||||
static u32 VibrationDeviceHandles[2][2];
|
||||
static HidVibrationDeviceHandle VibrationDeviceHandles[2][2];
|
||||
static HidVibrationValue VibrationValues[2];
|
||||
static HidVibrationValue VibrationValue_stop;
|
||||
#endif
|
||||
|
@ -26,8 +26,8 @@ static double m_scroll_x = 0, m_scroll_y = 0;
|
|||
|
||||
InputController::InputController() {
|
||||
#ifdef __SWITCH__
|
||||
hidInitializeVibrationDevices(VibrationDeviceHandles[0], 2, CONTROLLER_HANDHELD, TYPE_HANDHELD);
|
||||
hidInitializeVibrationDevices(VibrationDeviceHandles[1], 2, CONTROLLER_PLAYER_1, TYPE_JOYCON_PAIR);
|
||||
hidInitializeVibrationDevices(VibrationDeviceHandles[0], 2, HidNpadIdType_Handheld, HidNpadStyleTag_NpadHandheld);
|
||||
hidInitializeVibrationDevices(VibrationDeviceHandles[1], 2, HidNpadIdType_No1, HidNpadStyleTag_NpadJoyDual);
|
||||
|
||||
VibrationValue_stop.freq_low = 160.0f;
|
||||
VibrationValue_stop.freq_high = 320.0f;
|
||||
|
|
Loading…
Reference in a new issue