File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,8 @@ private void showSpecialKeysMenu() {
90
90
() -> sendKeys (new short []{KeyboardTranslator .VK_ESCAPE })),
91
91
new MenuOption (getString (R .string .game_menu_send_keys_f11 ),
92
92
() -> sendKeys (new short []{KeyboardTranslator .VK_F11 })),
93
+ new MenuOption (getString (R .string .game_menu_send_keys_ctrl_v ),
94
+ () -> sendKeys (new short []{KeyboardTranslator .VK_LCONTROL , KeyboardTranslator .VK_V })),
93
95
new MenuOption (getString (R .string .game_menu_send_keys_win ),
94
96
() -> sendKeys (new short []{KeyboardTranslator .VK_LWIN })),
95
97
new MenuOption (getString (R .string .game_menu_send_keys_win_d ),
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ public class KeyboardTranslator implements InputManager.InputDeviceListener {
24
24
public static final int VK_0 = 48 ;
25
25
public static final int VK_9 = 57 ;
26
26
public static final int VK_A = 65 ;
27
+ public static final int VK_C = 67 ;
27
28
public static final int VK_D = 68 ;
28
29
public static final int VK_G = 71 ;
30
+ public static final int VK_V = 86 ;
29
31
public static final int VK_Z = 90 ;
30
32
public static final int VK_NUMPAD0 = 96 ;
31
33
public static final int VK_BACK_SLASH = 92 ;
@@ -59,6 +61,7 @@ public class KeyboardTranslator implements InputManager.InputDeviceListener {
59
61
public static final int VK_PAUSE = 19 ;
60
62
public static final int VK_LWIN = 91 ;
61
63
public static final int VK_LSHIFT = 160 ;
64
+ public static final int VK_LCONTROL = 162 ;
62
65
63
66
private static class KeyboardMapping {
64
67
private final InputDevice device ;
@@ -191,7 +194,7 @@ else if (keycode >= KeyEvent.KEYCODE_F1 &&
191
194
break ;
192
195
193
196
case KeyEvent .KEYCODE_CTRL_LEFT :
194
- translated = 0xA2 ;
197
+ translated = VK_LCONTROL ;
195
198
break ;
196
199
197
200
case KeyEvent .KEYCODE_CTRL_RIGHT :
Original file line number Diff line number Diff line change 136
136
<string name =" game_menu_send_keys" >Send special key(s)</string >
137
137
<string name =" game_menu_send_keys_esc" >Send ESC (Menu)</string >
138
138
<string name =" game_menu_send_keys_f11" >Send F11 (Toggle full screen)</string >
139
+ <string name =" game_menu_send_keys_ctrl_v" >Send CTRL + V (Paste clipboard)</string >
139
140
<string name =" game_menu_send_keys_win" >Send WIN (Toggle Windows start menu)</string >
140
141
<string name =" game_menu_send_keys_win_d" >Send WIN + D (Switch to Desktop)</string >
141
142
<string name =" game_menu_send_keys_win_g" >Send WIN + G (Open Xbox Game Bar)</string >
You can’t perform that action at this time.
0 commit comments