Skip to content

Commit

Permalink
Improvement: button names instead of codes
Browse files Browse the repository at this point in the history
  • Loading branch information
r57zone committed Oct 31, 2022
1 parent c003aa2 commit 9170d19
Show file tree
Hide file tree
Showing 8 changed files with 382 additions and 64 deletions.
103 changes: 103 additions & 0 deletions BINDINGS.RU.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
## Клавиатура и мышь
Название клавиши | Значение
------------ | -------------
MOUSE LEFT BUTTON | `MOUSE-LEFT-BTN`
MOUSE RIGHT BUTTON | `MOUSE-RIGHT-BTN`
MOUSE MIDDLE BUTTON | `MOUSE-MIDDLE-BTN`
MOUSE SIDE 1 BUTTON | `MOUSE-SIDE1-BTN`
MOUSE SIDE 2 BUTTON | `MOUSE-SIDE1-BTN`
ESCAPE | `ESCAPE`
F1 | `F1`
F2 | `F2`
F3 | `F3`
F4 | `F4`
F5 | `F5`
F6 | `F6`
F7 | `F7`
F8 | `F8`
F9 | `F9`
F10 | `F10`
F11 | `F11`
F12 | `F12`
TAB | `TAB`
CAPS-LOCK | `CAPS-LOCK`
SHIFT | `SHIFT`
CTRL | `CTRL`
WIN | `WIN`
ALT | `ALT`
ПРОБЕЛ | `SPACE`
ENTER | `ENTER`
BACKSPACE | `BACKSPACE`
~ | `~`
1 | `1`
2 | `2`
3 | `3`
4 | `4`
5 | `5`
6 | `6`
7 | `7`
8 | `8`
9 | `9`
0 | `0`
\- | `-`
= + | `=`
a A | `A`
b B | `B`
c C | `C`
d D | `D`
e E | `E`
f F | `F`
g G | `G`
h H | `H`
i I | `I`
j J | `J`
k K | `K`
l L | `L`
m M | `M`
n N | `N`
o O | `O`
p P | `P`
q Q | `Q`
r R | `R`
s S | `S`
t T | `T`
u U | `U`
v V | `V`
w W | `W`
x X | `X`
y Y | `Y`
z Z | `Z`
[ | `[`
] | `]`
; : | `;`
‘ « | `'`
\ | `\`
PRINTSCREEN | `PRINTSCREEN`
SCROLL-LOCK | `SCROLL-LOCK`
ПАУЗА | `PAUSE`
INSERT | `INSERT`
DELETE | `DELETE`
HOME | `HOME`
END | `END`
PAGE-UP | `PAGE-UP`
PAGE-DOWN | `PAGE-DOWN`
ВВЕРХ | `UP`
ВНИЗ | `DOWN`
ВЛЕВО | `LEFT`
ВПРАВО | `RIGHT`
NUM-LOCK | `NUM-LOCK`
NUMPAD 0 | `NUMPAD0`
NUMPAD 1 | `NUMPAD1`
NUMPAD 2 | `NUMPAD2`
NUMPAD 3 | `NUMPAD3`
NUMPAD 4 | `NUMPAD4`
NUMPAD 5 | `NUMPAD5`
NUMPAD 6 | `NUMPAD6`
NUMPAD 7 | `NUMPAD7`
NUMPAD 8 | `NUMPAD8`
NUMPAD 9 | `NUMPAD9`
NUMPAD / | `NUMPAD-DIVIDE`
NUMPAD \* | `NUMPAD-MULTIPLY`
NUMPAD - | `NUMPAD-MINUS`
NUMPAD + | `NUMPAD-PLUS`
NUMPAD DEL | `NUMPAD-DEL`
113 changes: 113 additions & 0 deletions BINDINGS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
## Keyboard and mouse
Key name | Value
------------ | -------------
MOUSE LEFT BUTTON | `MOUSE-LEFT-BTN`
MOUSE RIGHT BUTTON | `MOUSE-RIGHT-BTN`
MOUSE MIDDLE BUTTON | `MOUSE-MIDDLE-BTN`
MOUSE SIDE 1 BUTTON | `MOUSE-SIDE1-BTN`
MOUSE SIDE 2 BUTTON | `MOUSE-SIDE1-BTN`
ESCAPE | `ESCAPE`
F1 | `F1`
F2 | `F2`
F3 | `F3`
F4 | `F4`
F5 | `F5`
F6 | `F6`
F7 | `F7`
F8 | `F8`
F9 | `F9`
F10 | `F10`
F11 | `F11`
F12 | `F12`
TAB | `TAB`
CAPS-LOCK | `CAPS-LOCK`
SHIFT | `SHIFT`
CTRL | `CTRL`
WIN | `WIN`
ALT | `ALT`
SPACE | `SPACE`
ENTER | `ENTER`
BACKSPACE | `BACKSPACE`
~ | `~`
1 | `1`
2 | `2`
3 | `3`
4 | `4`
5 | `5`
6 | `6`
7 | `7`
8 | `8`
9 | `9`
0 | `0`
\- | `-`
= + | `=`
a A | `A`
b B | `B`
c C | `C`
d D | `D`
e E | `E`
f F | `F`
g G | `G`
h H | `H`
i I | `I`
j J | `J`
k K | `K`
l L | `L`
m M | `M`
n N | `N`
o O | `O`
p P | `P`
q Q | `Q`
r R | `R`
s S | `S`
t T | `T`
u U | `U`
v V | `V`
w W | `W`
x X | `X`
y Y | `Y`
z Z | `Z`
[ | `[`
] | `]`
; : | `;`
‘ « | `'`
\ | `\`
PRINTSCREEN | `PRINTSCREEN`
SCROLL-LOCK | `SCROLL-LOCK`
PAUSE | `PAUSE`
INSERT | `INSERT`
DELETE | `DELETE`
HOME | `HOME`
END | `END`
PAGE-UP | `PAGE-UP`
PAGE-DOWN | `PAGE-DOWN`
UP | `UP`
DOWN | `DOWN`
LEFT | `LEFT`
RIGHT | `RIGHT`
NUM-LOCK | `NUM-LOCK`
NUMPAD 0 | `NUMPAD0`
NUMPAD 1 | `NUMPAD1`
NUMPAD 2 | `NUMPAD2`
NUMPAD 3 | `NUMPAD3`
NUMPAD 4 | `NUMPAD4`
NUMPAD 5 | `NUMPAD5`
NUMPAD 6 | `NUMPAD6`
NUMPAD 7 | `NUMPAD7`
NUMPAD 8 | `NUMPAD8`
NUMPAD 9 | `NUMPAD9`
NUMPAD / | `NUMPAD-DIVIDE`
NUMPAD \* | `NUMPAD-MULTIPLY`
NUMPAD - | `NUMPAD-MINUS`
NUMPAD + | `NUMPAD-PLUS`
NUMPAD DEL | `NUMPAD-DEL`

## Additional buttons
Key name | Value
------------ | -------------
VOLUME UP | `VOLUME-UP`
VOLUME DOWN | `VOLUME-DOWN`
HIDE APPS | `HIDE-APPS`
DISPLAY KEYBOARD | `DISPLAY-KEYBOARD`
GAMEBAR | `GAMEBAR`
GAMEBAR SCREENSHOT | `GAMEBAR-SCREENSHOT`
9 changes: 1 addition & 8 deletions ContextMenuBlock.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
(function () {
var blockContextMenu, myElement;

blockContextMenu = function (evt) {
evt.preventDefault();
};

myElement = document.querySelector('body');
myElement.addEventListener('contextmenu', blockContextMenu);
document.addEventListener('contextmenu', function (evt) {evt.preventDefault();});
})();
9 changes: 2 additions & 7 deletions README.FR.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Cette application qui permet d'émuler la manette DualShock 4 de chez Sony en ut

## Installation
1. Installer [ViGEmBus](https://github.com/ViGEm/ViGEmBus/releases).
2. Installer Microsoft Visual C++ Redistributable 2017 ou plus récent.
2. Installer [Microsoft Visual C++ Redistributable 2017](https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist) ou plus récent.
3. Dézipper et lancer "DS4Emulator.exe" (**Attention!** Il est important de lancer l'exe avant Playstation Plus si vous utilisez la manette XBox, pour que PS Plus donne la priorité à la manette (virtuelle) DS4).
4. Lancez "PlayStation Plus", "PS Remote Play", "xCloud" ou une autre application. Lisez la FAQ pour configurer xCloud.
5. Si besoin, vous pouvez inverser les axes : changez les paramètres `InvertX` et `InvertY` en `1` dans le fichier de configuration `Config.ini`.
Expand Down Expand Up @@ -105,7 +105,7 @@ Touchpad (clic) haut, centre, gauche, droite, bas | U, J, H, K, N
Secouer la manette | T
PS | F2

Vous pouvez changer cette configuration dans le fichier `Config.ini`. Les codes correspondants peuvent être trouvés [ici](https://github.com/r57zone/Half-Life-Alyx-novr/blob/master/BINDINGS.md).
Vous pouvez changer cette configuration dans le fichier `Config.ini`. Les titres correspondants peuvent être trouvés [ici](https://github.com/r57zone/DualShock4-emulator/blob/master/BINDINGS.md).



Expand All @@ -120,10 +120,5 @@ Vous pouvez aussi activer l'émulation des boutons analogiques (L2, R2) : change
**[Télécharger](https://github.com/r57zone/DualShock4-emulator/releases)**

## Forks
Un fork avec la prise en charge de la lecture des données gyroscope depuis la Nintendo Joy-Con est disponible ici -
**[Plus de détails](https://github.com/Okoken/DualShock4-emulator)**.


## Feedback
`r57zone[at]gmail.com`
7 changes: 2 additions & 5 deletions README.RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## Настройка
1. Установить [ViGEmBus](https://github.com/ViGEm/ViGEmBus/releases).
2. Установите Microsoft Visual C++ Redistributable 2017 или новее.
2. Установите [Microsoft Visual C++ Redistributable 2017](https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist) или новее.
3. Распаковать и запустить DualShock4 emulator (**Внимание!** Важно запускать DS4 emulator до запуска PS Plus, если вы используете Xbox контроллер, чтобы PS Plus отдала приоритет DualShock контроллеру).
4. Запустите "PlayStation Plus", "PS Remote Play", "xCloud" или другое приложение. Для настройки xCloud прочтите FAQ.
5. При необходимости можно инвертировать оси, измените параметры `InvertX` и `InvertY` на `1`, в конфигурационном файле "Config.ini".
Expand Down Expand Up @@ -103,7 +103,7 @@ Touchpad вверх, вниз, влево, вправо, вниз | U, J, H, K,
Потрясти геймпад | T
PS | F2

В конфигурационном файле "Config.ini" можно заменить привязки кнопок. Коды кнопок можно найти [здесь](https://github.com/r57zone/Half-Life-Alyx-novr/blob/master/BINDINGS.RU.md).
В конфигурационном файле "Config.ini" можно заменить привязки кнопок. Название кнопок можно найти [здесь](https://github.com/r57zone/DualShock4-emulator/blob/master/BINDINGS.RU.md).



Expand All @@ -118,8 +118,5 @@ PS | F2
**[Загрузить](https://github.com/r57zone/DualShock4-emulator/releases)**

## Форки
Форк, с поддержской чтения данных гироскопа с Nintendo Joy-Con - **[Подробнее](https://github.com/Okoken/DualShock4-emulator)**.

## Обратная связь
`r57zone[собака]gmail.com`
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Simple application to emulate the Sony DualShock 4 gamepad using an Xbox control

## Setup
1. Install [ViGEmBus](https://github.com/ViGEm/ViGEmBus/releases).
2. Install Microsoft Visual C++ Redistributable 2017 or newer.
2. Install [Microsoft Visual C++ Redistributable 2017](https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist) or newer.
3. Unpack and launch "DualShock4 emulator" (**Attention!** It is important to run DS4 emulator before starting PS Plus, if you are using an Xbox controller, so that PS Plus gives priority to the DualShock controller).
4. Launch "PlayStation Plus", "PS Remote Play", "xCloud", or another application. Read the FAQ to set up xCloud.
5. If necessary, you can invert the axis, change the `InvertX` and `InvertY` parameters to `1` in the "Config.ini" configuration file.
Expand Down Expand Up @@ -105,7 +105,7 @@ Touchpad up, center, left, right, down | U, J, H, K, N
Shake the gamepad | T
PS | F2

Сan replace button bindings in the "Config.ini" configuration file. Button codes can be found [here](https://github.com/r57zone/Half-Life-Alyx-novr/blob/master/BINDINGS.md).
Сan replace button bindings in the "Config.ini" configuration file. Button names can be found [here](https://github.com/r57zone/DualShock4-emulator/blob/master/BINDINGS.md).



Expand All @@ -120,8 +120,5 @@ You can also enable emulation of analog triggers (L2, R2), change the `EmulateAn
**[Download](https://github.com/r57zone/DualShock4-emulator/releases)**

## Forks
Fork with support for reading gyroscope data from Nintendo Joy-Con - **[More detailed](https://github.com/Okoken/DualShock4-emulator)**.

## Feedback
`r57zone[at]gmail.com`
Loading

0 comments on commit 9170d19

Please sign in to comment.