|
13 | 13 | namespace MaaFramework.Binding; |
14 | 14 |
|
15 | 15 | /// <summary> |
16 | | -/// Virtual gamepad button codes for click_key/key_down/key_up |
17 | | -/// <para>Use these values with MaaControllerPostClickKey, MaaControllerPostKeyDown, MaaControllerPostKeyUp.</para> |
18 | | -/// <para>Values are based on XUSB (Xbox 360) button flags. DS4 face buttons are mapped to Xbox equivalents.</para> |
19 | | -/// <para>Xbox 360 buttons:</para> |
20 | | -/// <code>| Value | Button | Description |</code> |
21 | | -/// <code>|---------|---------------------|------------------------|</code> |
22 | | -/// <code>| 0x1000 | A | A button |</code> |
23 | | -/// <code>| 0x2000 | B | B button |</code> |
24 | | -/// <code>| 0x4000 | X | X button |</code> |
25 | | -/// <code>| 0x8000 | Y | Y button |</code> |
26 | | -/// <code>| 0x0100 | LB (Left Shoulder) | Left bumper |</code> |
27 | | -/// <code>| 0x0200 | RB (Right Shoulder) | Right bumper |</code> |
28 | | -/// <code>| 0x0040 | L_THUMB | Left stick click |</code> |
29 | | -/// <code>| 0x0080 | R_THUMB | Right stick click |</code> |
30 | | -/// <code>| 0x0010 | START | Start button |</code> |
31 | | -/// <code>| 0x0020 | BACK | Back button |</code> |
32 | | -/// <code>| 0x0400 | GUIDE | Guide/Home button |</code> |
33 | | -/// <code>| 0x0001 | DPAD_UP | D-pad up |</code> |
34 | | -/// <code>| 0x0002 | DPAD_DOWN | D-pad down |</code> |
35 | | -/// <code>| 0x0004 | DPAD_LEFT | D-pad left |</code> |
36 | | -/// <code>| 0x0008 | DPAD_RIGHT | D-pad right |</code> |
37 | | -/// <para>DualShock 4 buttons (aliases to Xbox buttons):</para> |
38 | | -/// <code>| Value | Button | Xbox Equivalent | Description |</code> |
39 | | -/// <code>|---------|-----------|-----------------|---------------------------|</code> |
40 | | -/// <code>| 0x1000 | CROSS | A | Cross (X) button |</code> |
41 | | -/// <code>| 0x2000 | CIRCLE | B | Circle button |</code> |
42 | | -/// <code>| 0x4000 | SQUARE | X | Square button |</code> |
43 | | -/// <code>| 0x8000 | TRIANGLE | Y | Triangle button |</code> |
44 | | -/// <code>| 0x0100 | L1 | LB | L1 button |</code> |
45 | | -/// <code>| 0x0200 | R1 | RB | R1 button |</code> |
46 | | -/// <code>| 0x0040 | L3 | L_THUMB | Left stick click |</code> |
47 | | -/// <code>| 0x0080 | R3 | R_THUMB | Right stick click |</code> |
48 | | -/// <code>| 0x0010 | OPTIONS | START | Options button |</code> |
49 | | -/// <code>| 0x0020 | SHARE | BACK | Share button |</code> |
50 | | -/// <code>| 0x10000 | PS | - | PS button (DS4 special) |</code> |
51 | | -/// <code>| 0x20000 | TOUCHPAD | - | Touchpad click (DS4 only) |</code> |
| 16 | +/// Virtual gamepad button codes for <see cref="IMaaController.ClickKey(int)"/> / <see cref="IMaaController.KeyDown(int)"/> / <see cref="IMaaController.KeyUp(int)"/> |
| 17 | +/// |
| 18 | +/// <para>Use these values with MaaControllerPostClickKey, MaaControllerPostKeyDown, MaaControllerPostKeyUp. |
| 19 | +/// <br/>Values are based on XUSB (Xbox 360) button flags. DS4 face buttons are mapped to Xbox equivalents.</para> |
| 20 | +/// |
| 21 | +/// <para>Xbox 360 buttons:</para> |
| 22 | +/// |
| 23 | +/// <code>| Value | Button | Description | |
| 24 | +/// <br/>|---------|---------------------|------------------------| |
| 25 | +/// <br/>| 0x1000 | A | A button | |
| 26 | +/// <br/>| 0x2000 | B | B button | |
| 27 | +/// <br/>| 0x4000 | X | X button | |
| 28 | +/// <br/>| 0x8000 | Y | Y button | |
| 29 | +/// <br/>| 0x0100 | LB (Left Shoulder) | Left bumper | |
| 30 | +/// <br/>| 0x0200 | RB (Right Shoulder) | Right bumper | |
| 31 | +/// <br/>| 0x0040 | L_THUMB | Left stick click | |
| 32 | +/// <br/>| 0x0080 | R_THUMB | Right stick click | |
| 33 | +/// <br/>| 0x0010 | START | Start button | |
| 34 | +/// <br/>| 0x0020 | BACK | Back button | |
| 35 | +/// <br/>| 0x0400 | GUIDE | Guide/Home button | |
| 36 | +/// <br/>| 0x0001 | DPAD_UP | D-pad up | |
| 37 | +/// <br/>| 0x0002 | DPAD_DOWN | D-pad down | |
| 38 | +/// <br/>| 0x0004 | DPAD_LEFT | D-pad left | |
| 39 | +/// <br/>| 0x0008 | DPAD_RIGHT | D-pad right | |
| 40 | +/// </code> |
| 41 | +/// |
| 42 | +/// <para>DualShock 4 buttons (aliases to Xbox buttons):</para> |
| 43 | +/// |
| 44 | +/// <code>| Value | Button | Xbox Equivalent | Description | |
| 45 | +/// <br/>|---------|-----------|-----------------|---------------------------| |
| 46 | +/// <br/>| 0x1000 | CROSS | A | Cross (X) button | |
| 47 | +/// <br/>| 0x2000 | CIRCLE | B | Circle button | |
| 48 | +/// <br/>| 0x4000 | SQUARE | X | Square button | |
| 49 | +/// <br/>| 0x8000 | TRIANGLE | Y | Triangle button | |
| 50 | +/// <br/>| 0x0100 | L1 | LB | L1 button | |
| 51 | +/// <br/>| 0x0200 | R1 | RB | R1 button | |
| 52 | +/// <br/>| 0x0040 | L3 | L_THUMB | Left stick click | |
| 53 | +/// <br/>| 0x0080 | R3 | R_THUMB | Right stick click | |
| 54 | +/// <br/>| 0x0010 | OPTIONS | START | Options button | |
| 55 | +/// <br/>| 0x0020 | SHARE | BACK | Share button | |
| 56 | +/// <br/>| 0x10000 | PS | - | PS button (DS4 special) | |
| 57 | +/// <br/>| 0x20000 | TOUCHPAD | - | Touchpad click (DS4 only) | |
| 58 | +/// </code> |
| 59 | +/// |
52 | 60 | /// </summary> |
53 | 61 | [Flags] |
54 | 62 | public enum GamepadButton : System.UInt64 |
|
0 commit comments