You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.RU.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,15 +80,16 @@
80
80
81
81
82
82
83
-
• **Не работает вибрация на Nintendo контроллерах**<br>
84
-
К сожалению, это пока не реализовано.
83
+
• **Не работает вибрация на Nintendo Pro контроллере**<br>
84
+
Измените параметр `ProContollerRumble` на `1`, перезапустите программу и проверьте. Возможно заработает.
85
85
86
86
## Благодарности
87
87
* Sony и Nintendo за самые продвинутые геймпады и инвестирование в инновации, а также за продвижение инноваций в игры.
88
88
*[ViGEm](https://github.com/ViGEm) за возможность эмуляции разных геймпадов.
89
89
*[HIDAPI library](https://github.com/signal11/hidapi), с [исправлениями](https://github.com/libusb/hidapi), за библиотеку для работы с USB устройства. В проекте используется этот [форк](https://github.com/r57zone/hidapi).
90
90
*[JoyShockLibrary](https://github.com/JibbSmart/JoyShockLibrary) за классную библиотеку геймпадов, позволяющую легко получить вращение контроллера. Также используется некоторый код из этой библиотеки и [пример JibbSmart](https://gist.github.com/JibbSmart/8cbaba568c1c2e1193771459aa5385df) для прицеливания.
91
91
* DS4Windows[[1]](https://github.com/Jays2Kings/DS4Windows)[[2]](https://github.com/Ryochan7/DS4Windows) за уровень заряда батареи.
92
+
*[JoyCon-Driver](https://github.com/fossephate/JoyCon-Driver/blob/857e4e76e26f05d72400ae5d9f2a22cae88f3548/joycon-driver/include/Joycon.hpp) за вибрацию джойконов.
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,15 +81,16 @@ In some games, for example, Max Payne or Crysis 2, unfortunately, this don'n wor
81
81
82
82
83
83
84
-
• **Vibration does not work on Nintendo controllers**<br>
85
-
Unfortunately, this is not yet implemented.
84
+
• **Rumble don't work on Nintendo Pro controller**<br>
85
+
Change the `ProContollerRumble` parameter to `1`, restart the program and check. It might work.
86
86
87
87
## Credits
88
88
* Sony and Nintendo for the most advanced gamepads and investment in innovation, and for driving innovation in games.
89
89
*[ViGEm](https://github.com/ViGEm) for the ability to emulate different gamepads.
90
90
*[HIDAPI library](https://github.com/signal11/hidapi) with [fixes](https://github.com/libusb/hidapi) for the library to work with a USB devices. The project uses this [fork](https://github.com/r57zone/hidapi).
91
91
*[JoyShockLibrary](https://github.com/JibbSmart/JoyShockLibrary) for a cool gamepad library that makes it easy to get controller rotation. Also uses some code from this library and [JibbSmart snippet](https://gist.github.com/JibbSmart/8cbaba568c1c2e1193771459aa5385df) for aiming.
92
92
* DS4Windows[[1]](https://github.com/Jays2Kings/DS4Windows)[[2]](https://github.com/Ryochan7/DS4Windows) for the battery level.
93
+
*[JoyCon-Driver](https://github.com/fossephate/JoyCon-Driver/blob/857e4e76e26f05d72400ae5d9f2a22cae88f3548/joycon-driver/include/Joycon.hpp) for Joy-Cons rumble.
outputReport[2] = std::clamp(OutState.SmallMotor - 0, 0, 229); // It seems that it is not possible to use the Nintendo Switch motors at 100%, so we will limit ourselves to 90%.
if (OutState.SmallMotor == 0 && OutState.LargeMotor == 0) CurGamepad.RumbleOffCounter = 2; // Looks like Nintendo needs some "0" rumble packets to stop it
180
+
181
+
182
+
} elseif (CurGamepad.ControllerType == NINTENDO_SWITCH_PRO) { // Need test
outputReport[2] = std::clamp(OutState.SmallMotor - 0, 0, 229); // It seems that it is not possible to use the Nintendo Switch motors at 100%, so we will limit ourselves to 90%.
0 commit comments