@decky/ui 4.9.2 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/globals/SteamClient.d.ts +1 -304
- package/dist/globals/steam-client/App.d.ts +880 -0
- package/dist/globals/steam-client/App.js +320 -0
- package/dist/globals/steam-client/Auth.d.ts +57 -0
- package/dist/globals/steam-client/Auth.js +19 -0
- package/dist/globals/steam-client/Broadcast.d.ts +22 -0
- package/dist/globals/steam-client/Broadcast.js +1 -0
- package/dist/globals/steam-client/Browser.d.ts +45 -0
- package/dist/globals/steam-client/Browser.js +17 -0
- package/dist/globals/steam-client/ClientNotifications.d.ts +20 -0
- package/dist/globals/steam-client/ClientNotifications.js +6 -0
- package/dist/globals/steam-client/Cloud.d.ts +4 -0
- package/dist/globals/steam-client/Cloud.js +1 -0
- package/dist/globals/steam-client/CommunityItems.d.ts +5 -0
- package/dist/globals/steam-client/CommunityItems.js +1 -0
- package/dist/globals/steam-client/Console.d.ts +11 -0
- package/dist/globals/steam-client/Console.js +1 -0
- package/dist/globals/steam-client/Customization.d.ts +8 -0
- package/dist/globals/steam-client/Customization.js +1 -0
- package/dist/globals/steam-client/Downloads.d.ts +63 -0
- package/dist/globals/steam-client/Downloads.js +1 -0
- package/dist/globals/steam-client/FamilySharing.d.ts +20 -0
- package/dist/globals/steam-client/FamilySharing.js +1 -0
- package/dist/globals/steam-client/FriendSettings.d.ts +49 -0
- package/dist/globals/steam-client/FriendSettings.js +6 -0
- package/dist/globals/steam-client/Friends.d.ts +27 -0
- package/dist/globals/steam-client/Friends.js +1 -0
- package/dist/globals/steam-client/GameNotes.d.ts +41 -0
- package/dist/globals/steam-client/GameNotes.js +1 -0
- package/dist/globals/steam-client/GameRecording.d.ts +20 -0
- package/dist/globals/steam-client/GameRecording.js +1 -0
- package/dist/globals/steam-client/GameSessions.d.ts +26 -0
- package/dist/globals/steam-client/GameSessions.js +1 -0
- package/dist/globals/steam-client/Input.d.ts +421 -0
- package/dist/globals/steam-client/Input.js +170 -0
- package/dist/globals/steam-client/InstallFolder.d.ts +57 -0
- package/dist/globals/steam-client/InstallFolder.js +1 -0
- package/dist/globals/steam-client/Installs.d.ts +60 -0
- package/dist/globals/steam-client/Installs.js +20 -0
- package/dist/globals/steam-client/Messaging.d.ts +5 -0
- package/dist/globals/steam-client/Messaging.js +1 -0
- package/dist/globals/steam-client/Music.d.ts +36 -0
- package/dist/globals/steam-client/Music.js +14 -0
- package/dist/globals/steam-client/Notifications.d.ts +260 -0
- package/dist/globals/steam-client/Notifications.js +73 -0
- package/dist/globals/steam-client/OpenVR.d.ts +85 -0
- package/dist/globals/steam-client/OpenVR.js +16 -0
- package/dist/globals/steam-client/Overlay.d.ts +58 -0
- package/dist/globals/steam-client/Overlay.js +18 -0
- package/dist/globals/steam-client/Parental.d.ts +69 -0
- package/dist/globals/steam-client/Parental.js +19 -0
- package/dist/globals/steam-client/RemotePlay.d.ts +225 -0
- package/dist/globals/steam-client/RemotePlay.js +71 -0
- package/dist/globals/steam-client/Screenshots.d.ts +47 -0
- package/dist/globals/steam-client/Screenshots.js +8 -0
- package/dist/globals/steam-client/ServerBrowser.d.ts +117 -0
- package/dist/globals/steam-client/ServerBrowser.js +26 -0
- package/dist/globals/steam-client/Settings.d.ts +398 -0
- package/dist/globals/steam-client/Settings.js +96 -0
- package/dist/globals/steam-client/SharedConnection.d.ts +22 -0
- package/dist/globals/steam-client/SharedConnection.js +1 -0
- package/dist/globals/steam-client/Stats.d.ts +4 -0
- package/dist/globals/steam-client/Stats.js +1 -0
- package/dist/globals/steam-client/SteamChina.d.ts +3 -0
- package/dist/globals/steam-client/SteamChina.js +1 -0
- package/dist/globals/steam-client/Storage.d.ts +8 -0
- package/dist/globals/steam-client/Storage.js +1 -0
- package/dist/globals/steam-client/Streaming.d.ts +15 -0
- package/dist/globals/steam-client/Streaming.js +1 -0
- package/dist/globals/steam-client/UI.d.ts +44 -0
- package/dist/globals/steam-client/UI.js +12 -0
- package/dist/globals/steam-client/URL.d.ts +16 -0
- package/dist/globals/steam-client/URL.js +1 -0
- package/dist/globals/steam-client/Updates.d.ts +68 -0
- package/dist/globals/steam-client/Updates.js +34 -0
- package/dist/globals/steam-client/User.d.ts +130 -0
- package/dist/globals/steam-client/User.js +33 -0
- package/dist/globals/steam-client/WebChat.d.ts +60 -0
- package/dist/globals/steam-client/WebChat.js +6 -0
- package/dist/globals/steam-client/WebUITransport.d.ts +11 -0
- package/dist/globals/steam-client/WebUITransport.js +1 -0
- package/dist/globals/steam-client/Window.d.ts +66 -0
- package/dist/globals/steam-client/Window.js +6 -0
- package/dist/globals/steam-client/browser-view/BrowserViewPopup.d.ts +124 -0
- package/dist/globals/steam-client/browser-view/BrowserViewPopup.js +35 -0
- package/dist/globals/steam-client/browser-view/index.d.ts +20 -0
- package/dist/globals/steam-client/browser-view/index.js +1 -0
- package/dist/globals/steam-client/index.d.ts +89 -0
- package/dist/globals/steam-client/index.js +1 -0
- package/dist/globals/steam-client/shared.d.ts +166 -0
- package/dist/globals/steam-client/shared.js +146 -0
- package/dist/globals/steam-client/system/Audio.d.ts +42 -0
- package/dist/globals/steam-client/system/Audio.js +1 -0
- package/dist/globals/steam-client/system/AudioDevice.d.ts +92 -0
- package/dist/globals/steam-client/system/AudioDevice.js +33 -0
- package/dist/globals/steam-client/system/Bluetooth.d.ts +47 -0
- package/dist/globals/steam-client/system/Bluetooth.js +15 -0
- package/dist/globals/steam-client/system/Devkit.d.ts +7 -0
- package/dist/globals/steam-client/system/Devkit.js +1 -0
- package/dist/globals/steam-client/system/Display.d.ts +10 -0
- package/dist/globals/steam-client/system/Display.js +1 -0
- package/dist/globals/steam-client/system/DisplayManager.d.ts +9 -0
- package/dist/globals/steam-client/system/DisplayManager.js +1 -0
- package/dist/globals/steam-client/system/Dock.d.ts +19 -0
- package/dist/globals/steam-client/system/Dock.js +1 -0
- package/dist/globals/steam-client/system/Perf.d.ts +159 -0
- package/dist/globals/steam-client/system/Perf.js +53 -0
- package/dist/globals/steam-client/system/Report.d.ts +13 -0
- package/dist/globals/steam-client/system/Report.js +1 -0
- package/dist/globals/steam-client/system/UI.d.ts +28 -0
- package/dist/globals/steam-client/system/UI.js +1 -0
- package/dist/globals/steam-client/system/index.d.ts +243 -0
- package/dist/globals/steam-client/system/index.js +111 -0
- package/dist/globals/steam-client/system/network/Device.d.ts +10 -0
- package/dist/globals/steam-client/system/network/Device.js +1 -0
- package/dist/globals/steam-client/system/network/index.d.ts +312 -0
- package/dist/globals/steam-client/system/network/index.js +55 -0
- package/dist/globals/stores.d.ts +26 -13
- package/dist/modules/Router.d.ts +2 -39
- package/dist/modules/Router.js +0 -39
- package/package.json +1 -1
- package/src/globals/SteamClient.ts +4 -320
- package/src/globals/steam-client/App.ts +1749 -0
- package/src/globals/steam-client/Auth.ts +105 -0
- package/src/globals/steam-client/Broadcast.ts +56 -0
- package/src/globals/steam-client/Browser.ts +91 -0
- package/src/globals/steam-client/ClientNotifications.ts +39 -0
- package/src/globals/steam-client/Cloud.ts +14 -0
- package/src/globals/steam-client/CommunityItems.ts +24 -0
- package/src/globals/steam-client/Console.ts +43 -0
- package/src/globals/steam-client/Customization.ts +12 -0
- package/src/globals/steam-client/Downloads.ts +175 -0
- package/src/globals/steam-client/FamilySharing.ts +30 -0
- package/src/globals/steam-client/FriendSettings.ts +80 -0
- package/src/globals/steam-client/Friends.ts +70 -0
- package/src/globals/steam-client/GameNotes.ts +73 -0
- package/src/globals/steam-client/GameRecording.ts +29 -0
- package/src/globals/steam-client/GameSessions.ts +59 -0
- package/src/globals/steam-client/Input.ts +762 -0
- package/src/globals/steam-client/InstallFolder.ts +167 -0
- package/src/globals/steam-client/Installs.ts +131 -0
- package/src/globals/steam-client/Messaging.ts +20 -0
- package/src/globals/steam-client/Music.ts +99 -0
- package/src/globals/steam-client/Notifications.ts +333 -0
- package/src/globals/steam-client/OpenVR.ts +122 -0
- package/src/globals/steam-client/Overlay.ts +172 -0
- package/src/globals/steam-client/Parental.ts +129 -0
- package/src/globals/steam-client/RemotePlay.ts +342 -0
- package/src/globals/steam-client/Screenshots.ts +149 -0
- package/src/globals/steam-client/ServerBrowser.ts +372 -0
- package/src/globals/steam-client/Settings.ts +663 -0
- package/src/globals/steam-client/SharedConnection.ts +43 -0
- package/src/globals/steam-client/Stats.ts +10 -0
- package/src/globals/steam-client/SteamChina.ts +3 -0
- package/src/globals/steam-client/Storage.ts +24 -0
- package/src/globals/steam-client/Streaming.ts +59 -0
- package/src/globals/steam-client/UI.ts +90 -0
- package/src/globals/steam-client/URL.ts +174 -0
- package/src/globals/steam-client/Updates.ts +101 -0
- package/src/globals/steam-client/User.ts +266 -0
- package/src/globals/steam-client/WebChat.ts +164 -0
- package/src/globals/steam-client/WebUITransport.ts +21 -0
- package/src/globals/steam-client/Window.ts +235 -0
- package/src/globals/steam-client/browser-view/BrowserViewPopup.ts +393 -0
- package/src/globals/steam-client/browser-view/index.ts +54 -0
- package/src/globals/steam-client/index.ts +90 -0
- package/src/globals/steam-client/shared.ts +262 -0
- package/src/globals/steam-client/system/Audio.ts +202 -0
- package/src/globals/steam-client/system/AudioDevice.ts +116 -0
- package/src/globals/steam-client/system/Bluetooth.ts +171 -0
- package/src/globals/steam-client/system/Devkit.ts +11 -0
- package/src/globals/steam-client/system/Display.ts +15 -0
- package/src/globals/steam-client/system/DisplayManager.ts +16 -0
- package/src/globals/steam-client/system/Dock.ts +34 -0
- package/src/globals/steam-client/system/Perf.ts +194 -0
- package/src/globals/steam-client/system/Report.ts +39 -0
- package/src/globals/steam-client/system/UI.ts +38 -0
- package/src/globals/steam-client/system/index.ts +390 -0
- package/src/globals/steam-client/system/network/Device.ts +17 -0
- package/src/globals/steam-client/system/network/index.ts +403 -0
- package/src/globals/stores.ts +30 -13
- package/src/modules/Router.ts +2 -40
|
@@ -0,0 +1,762 @@
|
|
|
1
|
+
import { Unregisterable } from "./shared";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents functions related to input and controllers in Steam.
|
|
5
|
+
*/
|
|
6
|
+
export interface Input {
|
|
7
|
+
CalibrateControllerIMU(controllerIndex: any): any;
|
|
8
|
+
|
|
9
|
+
CalibrateControllerJoystick(controllerIndex: any): any;
|
|
10
|
+
|
|
11
|
+
CalibrateControllerTrackpads(controllerIndex: any): any;
|
|
12
|
+
|
|
13
|
+
CancelGyroSWCalibration(): any;
|
|
14
|
+
|
|
15
|
+
ClearSelectedConfigForApp(appId: number, controllerIndex: number): any;
|
|
16
|
+
|
|
17
|
+
CloseDesktopConfigurator: any;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Writes text.
|
|
21
|
+
* @param textToWrite The text to write.
|
|
22
|
+
*/
|
|
23
|
+
ControllerKeyboardSendText(textToWrite: string): void;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Sets a specified key's pressed state.
|
|
27
|
+
* @param key The key index to set the state for.
|
|
28
|
+
* @param state `true` for pressed, `false` otherwise.
|
|
29
|
+
* @example
|
|
30
|
+
* Send paste command:
|
|
31
|
+
* ```
|
|
32
|
+
* SteamClient.Input.ControllerKeyboardSetKeyState(EHIDKeyboardKey.LControl, true);
|
|
33
|
+
* SteamClient.Input.ControllerKeyboardSetKeyState(EHIDKeyboardKey.V, true);
|
|
34
|
+
* SteamClient.Input.ControllerKeyboardSetKeyState(EHIDKeyboardKey.V, false);
|
|
35
|
+
* SteamClient.Input.ControllerKeyboardSetKeyState(EHIDKeyboardKey.LControl, false);
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
ControllerKeyboardSetKeyState(key: EHIDKeyboardKey, state: boolean): void;
|
|
39
|
+
|
|
40
|
+
DecrementCloudedControllerConfigsCounter(): any;
|
|
41
|
+
|
|
42
|
+
DeletePersonalControllerConfiguration(param0: any): any;
|
|
43
|
+
|
|
44
|
+
//f.Debug("sending to client"), this.SetEditingConfigurationValue(e, t, c.QU, (e => SteamClient.Input.DuplicateControllerConfigurationSourceMode(this.m_unControllerIndex, e))), this.SaveEditingConfiguration(e), this
|
|
45
|
+
DuplicateControllerConfigurationSourceMode(controllerIndex: number, param1: any): any;
|
|
46
|
+
|
|
47
|
+
EndControllerDeviceSupportFlow(): any;
|
|
48
|
+
|
|
49
|
+
ExportCurrentControllerConfiguration(controllerIndex: number, appId: number, param2: number, title: string, description: string, param5: string): Promise<any>;
|
|
50
|
+
|
|
51
|
+
ForceConfiguratorFocus(param0: boolean): any;
|
|
52
|
+
|
|
53
|
+
ForceSimpleHapticEvent(param0: number, param1: number, param2: number, param3: number, param4: number): any;
|
|
54
|
+
|
|
55
|
+
FreeControllerConfig(m_ChordSummaryConfiguration: any): any;
|
|
56
|
+
|
|
57
|
+
GetConfigForAppAndController(appId: number, unControllerIndex: number): any;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Retrieves the controller mapping string for the specified controller index.
|
|
61
|
+
* @param unControllerIndex The controller index.
|
|
62
|
+
* @returns the controller mapping string.
|
|
63
|
+
*/
|
|
64
|
+
GetControllerMappingString(unControllerIndex: number): Promise<string>;
|
|
65
|
+
|
|
66
|
+
GetControllerPreviouslySeen(): Promise<number[]>;
|
|
67
|
+
|
|
68
|
+
GetSteamControllerDongleState(): Promise<boolean>;
|
|
69
|
+
|
|
70
|
+
GetTouchMenuIconsForApp(appId: number): Promise<any>;
|
|
71
|
+
|
|
72
|
+
GetXboxDriverInstallState(): Promise<any>; // "{"nResult":0}"
|
|
73
|
+
IdentifyController(controllerIndex: number): any;
|
|
74
|
+
|
|
75
|
+
InitControllerSounds(): any;
|
|
76
|
+
|
|
77
|
+
InitializeControllerPersonalizationSettings(controllerIndex: number): any;
|
|
78
|
+
|
|
79
|
+
ModalKeyboardDismissed(): void;
|
|
80
|
+
|
|
81
|
+
OpenDesktopConfigurator: any;
|
|
82
|
+
|
|
83
|
+
PreviewConfigForAppAndController(appId: number, controllerIndex: number, workshopUri: string): any;
|
|
84
|
+
|
|
85
|
+
PreviewControllerLEDColor(flHue: number, flSaturation: number, flBrightness: number): any;
|
|
86
|
+
|
|
87
|
+
QueryControllerConfigsForApp(appId: number, controllerIndex: number, param2: boolean): any;
|
|
88
|
+
|
|
89
|
+
RegisterForActiveControllerChanges: Unregisterable; // {"nActiveController":0}
|
|
90
|
+
//param0 - e possibly appid?
|
|
91
|
+
//param1 - some index?
|
|
92
|
+
RegisterForConfigSelectionChanges(callback: (param0: number, param1: number) => void): Unregisterable;
|
|
93
|
+
|
|
94
|
+
RegisterForControllerAccountChanges: Unregisterable;
|
|
95
|
+
|
|
96
|
+
RegisterForControllerAnalogInputMessages(
|
|
97
|
+
callback: (msgs: ControllerAnalogInputMessage[]) => void,
|
|
98
|
+
): Unregisterable;
|
|
99
|
+
|
|
100
|
+
RegisterForControllerBatteryChanges(callback: any): Unregisterable;
|
|
101
|
+
|
|
102
|
+
RegisterForControllerCommandMessages(
|
|
103
|
+
callback: (msg: ControllerCommandMessage) => void,
|
|
104
|
+
): Unregisterable;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Registers a callback for changes in controller configuration cloud state.
|
|
108
|
+
* @param callback The callback function for config cloud state changes.
|
|
109
|
+
* @returns an object that can be used to unregister the callback.
|
|
110
|
+
*/
|
|
111
|
+
RegisterForControllerConfigCloudStateChanges(
|
|
112
|
+
callback: (state: ControllerConfigCloudState) => void,
|
|
113
|
+
): Unregisterable;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Registers a callback for receiving controller configuration info messages (controller layouts query, personal controller layout query).
|
|
117
|
+
* @param callback The callback function for controller config info messages.
|
|
118
|
+
* @returns an object that can be used to unregister the callback.
|
|
119
|
+
* @remarks Do Not Use, this will break the controller layout selection unless you know what you are doing.
|
|
120
|
+
*/
|
|
121
|
+
RegisterForControllerConfigInfoMessages(
|
|
122
|
+
callback: (
|
|
123
|
+
msgs: ControllerConfigInfoMessageList[] | ControllerConfigInfoMessageQuery[],
|
|
124
|
+
) => void,
|
|
125
|
+
): Unregisterable;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Registers a callback function to be invoked when controller input messages are received.
|
|
129
|
+
* @param callback The callback function to be invoked when controller input messages are received.
|
|
130
|
+
* @returns an object that can be used to unregister the callback.
|
|
131
|
+
*/
|
|
132
|
+
RegisterForControllerInputMessages(
|
|
133
|
+
callback: (msgs: ControllerInputMessage[]) => void,
|
|
134
|
+
): Unregisterable;
|
|
135
|
+
|
|
136
|
+
RegisterForControllerListChanges(callback: (controllerListChanges: ControllerInfo[]) => void): Unregisterable;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Registers a callback for changes in the controller state (buttons presses, triggers presses, joystick changes etc...).
|
|
140
|
+
* @param callback The callback function for controller state changes.
|
|
141
|
+
* @returns an object that can be used to unregister the callback.
|
|
142
|
+
*/
|
|
143
|
+
RegisterForControllerStateChanges(
|
|
144
|
+
callback: (changes: ControllerStateChange[]) => void,
|
|
145
|
+
): Unregisterable;
|
|
146
|
+
|
|
147
|
+
RegisterForDualSenseUpdateNotification(callback: (m_strDualSenseUpdateProduct: string) => void): Unregisterable;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Registers a callback for receiving game keyboard messages (text field popup for inputting text for games when in character creation or etc...).
|
|
151
|
+
* @param callback The callback function for game keyboard messages.
|
|
152
|
+
* @returns an object that can be used to unregister the callback.
|
|
153
|
+
*/
|
|
154
|
+
RegisterForGameKeyboardMessages(callback: (msg: GameKeyboardMessage) => void): Unregisterable;
|
|
155
|
+
|
|
156
|
+
RegisterForRemotePlayConfigChanges(callback: () => void): Unregisterable;
|
|
157
|
+
|
|
158
|
+
//data.appId, data.ulConfigId
|
|
159
|
+
RegisterForShowControllerLayoutPreviewMessages(callback: (data: any) => void): Unregisterable;
|
|
160
|
+
|
|
161
|
+
/*
|
|
162
|
+
onTouchMenuInput(e) {
|
|
163
|
+
for (let t = 0; t < e.length; t++) {
|
|
164
|
+
const n = this.TouchMenuGetKey(e[t]), o = this.m_mapActiveTouchMenus.get(n);
|
|
165
|
+
void 0 !== o && o.updateTouchMenuState(e[t])
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
*/
|
|
169
|
+
RegisterForTouchMenuInputMessages(callback: (inputs: number[]) => void): Unregisterable;
|
|
170
|
+
|
|
171
|
+
RegisterForTouchMenuMessages(callback: (msg: TouchMenuMessage) => void): Unregisterable;
|
|
172
|
+
|
|
173
|
+
//param0 - index?
|
|
174
|
+
RegisterForUIVisualization(param0: any, param1: any, param2: any): Unregisterable;
|
|
175
|
+
|
|
176
|
+
RegisterForUnboundControllerListChanges(callback: (m_unboundControllerList: any) => void): Unregisterable; // param0 is an array
|
|
177
|
+
|
|
178
|
+
/*
|
|
179
|
+
OnDismissKeyboardMessage(e) {
|
|
180
|
+
this.m_WindowStore.SteamUIWindows.forEach((e => e.VirtualKeyboardManager.SetVirtualKeyboardHidden(e.BrowserWindow)))
|
|
181
|
+
}
|
|
182
|
+
*/
|
|
183
|
+
RegisterForUserDismissKeyboardMessages(callback: (param0: any) => void): Unregisterable;
|
|
184
|
+
|
|
185
|
+
RegisterForUserKeyboardMessages: Unregisterable;
|
|
186
|
+
|
|
187
|
+
RequestGyroActive(controllerIndex: number, param1: boolean): any;
|
|
188
|
+
|
|
189
|
+
RequestRemotePlayControllerConfigs(param0: any): any;
|
|
190
|
+
|
|
191
|
+
ResetControllerBindings(param0: any): any;
|
|
192
|
+
|
|
193
|
+
ResolveCloudedControllerConfigConflict(param0: any): any;
|
|
194
|
+
|
|
195
|
+
RestoreControllerPersonalizationSettings(controllerIndex: number): any;
|
|
196
|
+
|
|
197
|
+
SaveControllerCalibration(controllerIndex: number): any;
|
|
198
|
+
|
|
199
|
+
SaveControllerPersonalizationSettings(param0: any): any;
|
|
200
|
+
|
|
201
|
+
SaveControllerSounds: any;
|
|
202
|
+
|
|
203
|
+
SaveEditingControllerConfiguration(controllerIndex: number, sharedConfig: boolean): any;
|
|
204
|
+
|
|
205
|
+
//this.SetEditingConfigurationValue(e, t, c.sL, (e => SteamClient.Input.SetControllerConfigurationModeShiftBinding(this.m_unControllerIndex, e)))
|
|
206
|
+
SetControllerConfigurationModeShiftBinding(controllerIndex: number, param1: any): any;
|
|
207
|
+
|
|
208
|
+
SetControllerHapticSetting(controllerIndex: number, eHapticSetting: any): any;
|
|
209
|
+
|
|
210
|
+
SetControllerMappingString(mapping: string): void;
|
|
211
|
+
|
|
212
|
+
SetControllerName(controllerIndex: number, controllerName: string): any;
|
|
213
|
+
|
|
214
|
+
SetControllerNintendoLayoutSetting: any;
|
|
215
|
+
SetControllerPersonalizationName: any;
|
|
216
|
+
|
|
217
|
+
//param0 - nLStickDeadzone, bSWAntiDrift, nRHapticStrength, flRPadPressureCurve
|
|
218
|
+
/*
|
|
219
|
+
SteamClient.Input.SetControllerPersonalizationSetting("nLStickDeadzone", e.nLStickDeadzone),
|
|
220
|
+
SteamClient.Input.SetControllerPersonalizationSetting("nRStickDeadzone", e.nRStickDeadzone),
|
|
221
|
+
SteamClient.Input.SetControllerPersonalizationSetting("bSWAntiDrift", e.bSWAntiDrift ? 1 : 0),
|
|
222
|
+
SteamClient.Input.SetControllerPersonalizationSetting("nLHapticStrength", e.nLHapticStrength),
|
|
223
|
+
SteamClient.Input.SetControllerPersonalizationSetting("nRHapticStrength", e.nRHapticStrength),
|
|
224
|
+
SteamClient.Input.SetControllerPersonalizationSetting("flLPadPressureCurve", 100 * e.flLPadPressureCurve),
|
|
225
|
+
SteamClient.Input.SetControllerPersonalizationSetting("flRPadPressureCurve", 100 * e.flRPadPressureCurve),
|
|
226
|
+
SteamClient.Input.SetControllerPersonalizationSetting("ePlayerSlotLEDSetting", e),
|
|
227
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.nGyroSampleAngleOffsetX", e.nGyroSampleAngleOffsetX),
|
|
228
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.bMomentumEnabled", e.bMomentumEnabled ? 1 : 0),
|
|
229
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.nMomentumFrictionX", e.nMomentumFrictionX),
|
|
230
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.nMomentumFrictionY", e.nMomentumFrictionY),
|
|
231
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.nAccerationLevel", e.nAccerationLevel),
|
|
232
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.bInvertX", e.bInvertX ? 1 : 0),
|
|
233
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.bInvertY", e.bInvertY ? 1 : 0),
|
|
234
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.nRotationAngle", e.nRotationAngle),
|
|
235
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.nTriggerClamping", e.nTriggerClamping),
|
|
236
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.nTriggerClampingAmount", e.nTriggerClampingAmount),
|
|
237
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.nGyroEnableButton", e.nGyroEnableButton),
|
|
238
|
+
SteamClient.Input.SetControllerPersonalizationSetting("GyroPreferenceData.nGyroEnableButtonBehavior", e.nGyroEnableButtonBehavior),
|
|
239
|
+
*/
|
|
240
|
+
SetControllerPersonalizationSetting(param0: string, param1: number): any;
|
|
241
|
+
|
|
242
|
+
//param0 - flGyroStationaryTolerance, flAccelerometerStationaryTolerance,
|
|
243
|
+
/*
|
|
244
|
+
SteamClient.Input.SetControllerPersonalizationSettingFloat("GyroPreferenceData.flGyroNaturalSensitivity", e.flGyroNaturalSensitivity),
|
|
245
|
+
SteamClient.Input.SetControllerPersonalizationSettingFloat("GyroPreferenceData.flGyroXYRatio", e.flGyroXYRatio),
|
|
246
|
+
SteamClient.Input.SetControllerPersonalizationSettingFloat("GyroPreferenceData.flGyroSpeedDeadzone", e.flGyroSpeedDeadzone),
|
|
247
|
+
SteamClient.Input.SetControllerPersonalizationSettingFloat("GyroPreferenceData.flGyroPrecisionSpeed", e.flGyroPrecisionSpeed),
|
|
248
|
+
SteamClient.Input.SetControllerPersonalizationSettingFloat("flGyroStationaryTolerance", e.flGyroStationaryTolerance),
|
|
249
|
+
SteamClient.Input.SetControllerPersonalizationSettingFloat("flAccelerometerStationaryTolerance", e.flAccelerometerStationaryTolerance),
|
|
250
|
+
*/
|
|
251
|
+
SetControllerPersonalizationSettingFloat(param0: string, param1: number): any;
|
|
252
|
+
|
|
253
|
+
SetControllerRumbleSetting(controllerIndex: number, rumblePreference: EControllerRumbleSetting): any;
|
|
254
|
+
|
|
255
|
+
SetControllerUseUniversalFaceButtonGlyphs(controllerIndex: number, value: boolean): void;
|
|
256
|
+
|
|
257
|
+
SetCursorActionset(param0: boolean): any;
|
|
258
|
+
|
|
259
|
+
SetDualSenseUpdateNotification(param0: boolean): any
|
|
260
|
+
|
|
261
|
+
/*
|
|
262
|
+
SetEditingConfigurationValue(e, t, n, o) {
|
|
263
|
+
const a = new r.BinaryWriter;
|
|
264
|
+
n.serializeBinaryToWriter(n.fromObject(t), a);
|
|
265
|
+
const s = a.getResultBase64String();
|
|
266
|
+
f.Debug("SetEditingConfigurationValue serializeBinaryToWriter", (0, i.ZN)(t), s), this.EditingConfigurationWillUpdate(), this.m_updatingEditingConfigurationPromise = o(s).then((t => {
|
|
267
|
+
if (null == t) return f.Debug("SetEditingConfigurationValue returned nothing."), void (0, i.z)((() => this.UpdateEditingConfiguration(e, this.m_unControllerIndex, this.EditingConfiguration)));
|
|
268
|
+
const n = c.bE.deserializeBinary(t).toObject();
|
|
269
|
+
f.Debug("SetEditingConfigurationValue returned controller configuration.", n), this.UpdateEditingConfiguration(e, this.m_unControllerIndex, n), this.m_nEditNumber++, -1 == n.url.indexOf("autosave://") && this.SaveEditingConfiguration(e)
|
|
270
|
+
})).catch((e => {
|
|
271
|
+
f.Error("SetEditingConfigurationValue fail:", o, l.jt(e.result), e.message), this.m_bIsUpdatingActiveConfiguration = !1
|
|
272
|
+
}))
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
SetControllerActionSet(e, t) {
|
|
276
|
+
this.SetEditingConfigurationValue(e, t, c.X3, (e => SteamClient.Input.SetEditingControllerConfigurationActionSet(this.m_unControllerIndex, e)))
|
|
277
|
+
}
|
|
278
|
+
*/
|
|
279
|
+
SetEditingControllerConfigurationActionSet(controllerIndex: number, param1: any): any;
|
|
280
|
+
|
|
281
|
+
//this.SetEditingConfigurationValue(e, t, c.io, (e => SteamClient.Input.SetEditingControllerConfigurationInputActivator(this.m_unControllerIndex, e)))
|
|
282
|
+
SetEditingControllerConfigurationInputActivator(controllerIndex: number, param1: any): any;
|
|
283
|
+
|
|
284
|
+
//this.SetEditingConfigurationValue(e, t, c.tH, (e => SteamClient.Input.SetEditingControllerConfigurationInputActivatorEnabled(this.m_unControllerIndex, e)))
|
|
285
|
+
SetEditingControllerConfigurationInputActivatorEnabled(controllerIndex: number, param1: any): any;
|
|
286
|
+
|
|
287
|
+
//this.SetEditingConfigurationValue(e, t, c.J2, (e => SteamClient.Input.SetEditingControllerConfigurationInputBinding(this.m_unControllerIndex, e)))
|
|
288
|
+
SetEditingControllerConfigurationInputBinding(controllerIndex: number, param1: any): any;
|
|
289
|
+
|
|
290
|
+
//this.SetEditingConfigurationValue(e, t, c.Sz, (e => SteamClient.Input.SetEditingControllerConfigurationMiscSetting(this.m_unControllerIndex, e)))
|
|
291
|
+
SetEditingControllerConfigurationMiscSetting(controllerIndex: number, param1: any): any;
|
|
292
|
+
|
|
293
|
+
//f.Debug("sending to client"), this.SetEditingConfigurationValue(e, t, c.QU, (e => SteamClient.Input.SetEditingControllerConfigurationSourceMode(this.m_unControllerIndex, e)))
|
|
294
|
+
SetEditingControllerConfigurationSourceMode(controllerIndex: number, param1: any): any;
|
|
295
|
+
|
|
296
|
+
SetGamepadKeyboardText(param0: boolean, param1: string): any;
|
|
297
|
+
|
|
298
|
+
SetKeyboardActionset(param0: boolean, param1: boolean): any;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Sets the mouse position.
|
|
302
|
+
* @param pid 0
|
|
303
|
+
* @param x Mouse X position.
|
|
304
|
+
* @param y Mouse Y position.
|
|
305
|
+
*/
|
|
306
|
+
SetMousePosition(pid: number, x: number, y: number): void;
|
|
307
|
+
|
|
308
|
+
SetSelectedConfigForApp(appId: number, controllerIndex: number, url: string, param3: boolean): any;
|
|
309
|
+
|
|
310
|
+
SetSteamControllerDonglePairingMode(bEnable: boolean, bSilent: boolean): any;
|
|
311
|
+
|
|
312
|
+
SetVirtualMenuKeySelected(unControllerIndex: number, unMenuIndex: number, m_controllerMenuActiveMenuItem: number): any; //
|
|
313
|
+
SetWebBrowserActionset(param0: boolean): any;
|
|
314
|
+
|
|
315
|
+
SetXboxDriverInstallState(param0: any): any; // state
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Opens the Steam Input controller settings.
|
|
319
|
+
* This function displays the Steam Input controller settings for configuration.
|
|
320
|
+
*/
|
|
321
|
+
ShowControllerSettings(): void;
|
|
322
|
+
|
|
323
|
+
StandaloneKeyboardDismissed(): any;
|
|
324
|
+
|
|
325
|
+
StartControllerDeviceSupportFlow(param0: any, param1: any, callback: (param2: any) => void): any;
|
|
326
|
+
|
|
327
|
+
/*
|
|
328
|
+
this.m_updatingEditingConfigurationPromise = SteamClient.Input.StartEditingControllerConfigurationForAppIDAndControllerIndex(e, t).then((n=>{
|
|
329
|
+
const o = c.bE.deserializeBinary(n).toObject();
|
|
330
|
+
f.Debug("Loaded controller config for appid", e, n, o),
|
|
331
|
+
(0,
|
|
332
|
+
i.z)((()=>this.UpdateEditingConfiguration(e, t, o)))
|
|
333
|
+
}
|
|
334
|
+
)).catch((n=>{
|
|
335
|
+
f.Debug("Loading controller config for appid rejected", e, n),
|
|
336
|
+
(0,
|
|
337
|
+
i.z)((()=>this.UpdateEditingConfiguration(e, t, null)))
|
|
338
|
+
}
|
|
339
|
+
))
|
|
340
|
+
*/
|
|
341
|
+
StartEditingControllerConfigurationForAppIDAndControllerIndex(m_appId: number, m_unControllerIndex: number): Promise<any>;
|
|
342
|
+
|
|
343
|
+
StartGyroSWCalibration(callback: () => void): any;
|
|
344
|
+
|
|
345
|
+
StopEditingControllerConfiguration(controllerIndex: number): any;
|
|
346
|
+
|
|
347
|
+
SwapControllerConfigurationSourceModes: any;
|
|
348
|
+
|
|
349
|
+
//this.SetEditingConfigurationValue(e, t, c.Qb, (e => SteamClient.Input.SwapControllerModeInputBindings(this.m_unControllerIndex, e)))
|
|
350
|
+
SwapControllerModeInputBindings(controllerIndex: number, param1: any): any;
|
|
351
|
+
|
|
352
|
+
SwapControllerOrder(controllerIndex1: number, controllerIndex2: number): any;
|
|
353
|
+
|
|
354
|
+
SyncCloudedControllerConfigs(): any;
|
|
355
|
+
|
|
356
|
+
// type - enum
|
|
357
|
+
/*
|
|
358
|
+
Off - 0, Tick, Click
|
|
359
|
+
*/
|
|
360
|
+
TriggerHapticPulse(controllerIndex: number, eHapticType: number, param2: number): any;
|
|
361
|
+
|
|
362
|
+
TriggerSimpleHapticEvent(
|
|
363
|
+
controllerIndex: number,
|
|
364
|
+
eHapticType: number,
|
|
365
|
+
unIntensity: number,
|
|
366
|
+
ndBGain: number,
|
|
367
|
+
param4: number,
|
|
368
|
+
): any;
|
|
369
|
+
|
|
370
|
+
UnregisterForControllerStateChanges(): void;
|
|
371
|
+
|
|
372
|
+
UnregisterForUIVisualization(controllerIndex: number): any;
|
|
373
|
+
|
|
374
|
+
UploadChangesForCloudedControllerConfigs(): any;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export enum EHIDKeyboardKey {
|
|
378
|
+
Invalid,
|
|
379
|
+
BeforeFirst = 3,
|
|
380
|
+
A,
|
|
381
|
+
B,
|
|
382
|
+
C,
|
|
383
|
+
D,
|
|
384
|
+
E,
|
|
385
|
+
F,
|
|
386
|
+
G,
|
|
387
|
+
H,
|
|
388
|
+
I,
|
|
389
|
+
J,
|
|
390
|
+
K,
|
|
391
|
+
L,
|
|
392
|
+
M,
|
|
393
|
+
N,
|
|
394
|
+
O,
|
|
395
|
+
P,
|
|
396
|
+
Q,
|
|
397
|
+
R,
|
|
398
|
+
S,
|
|
399
|
+
T,
|
|
400
|
+
U,
|
|
401
|
+
V,
|
|
402
|
+
W,
|
|
403
|
+
X,
|
|
404
|
+
Y,
|
|
405
|
+
Z,
|
|
406
|
+
Key_1,
|
|
407
|
+
Key_2,
|
|
408
|
+
Key_3,
|
|
409
|
+
Key_4,
|
|
410
|
+
Key_5,
|
|
411
|
+
Key_6,
|
|
412
|
+
Key_7,
|
|
413
|
+
Key_8,
|
|
414
|
+
Key_9,
|
|
415
|
+
Key_0,
|
|
416
|
+
Return,
|
|
417
|
+
Escape,
|
|
418
|
+
Backspace,
|
|
419
|
+
Tab,
|
|
420
|
+
Space,
|
|
421
|
+
Dash,
|
|
422
|
+
Equals,
|
|
423
|
+
LeftBracket,
|
|
424
|
+
RightBracket,
|
|
425
|
+
Backslash,
|
|
426
|
+
Unused1,
|
|
427
|
+
Semicolon,
|
|
428
|
+
SingleQuote,
|
|
429
|
+
Backtick,
|
|
430
|
+
Comma,
|
|
431
|
+
Period,
|
|
432
|
+
ForwardSlash,
|
|
433
|
+
CapsLock,
|
|
434
|
+
F1,
|
|
435
|
+
F2,
|
|
436
|
+
F3,
|
|
437
|
+
F4,
|
|
438
|
+
F5,
|
|
439
|
+
F6,
|
|
440
|
+
F7,
|
|
441
|
+
F8,
|
|
442
|
+
F9,
|
|
443
|
+
F10,
|
|
444
|
+
F11,
|
|
445
|
+
F12,
|
|
446
|
+
PrintScreen,
|
|
447
|
+
ScrollLock,
|
|
448
|
+
Break,
|
|
449
|
+
Insert,
|
|
450
|
+
Home,
|
|
451
|
+
PageUp,
|
|
452
|
+
Delete,
|
|
453
|
+
End,
|
|
454
|
+
PageDown,
|
|
455
|
+
RightArrow,
|
|
456
|
+
LeftArrow,
|
|
457
|
+
DownArrow,
|
|
458
|
+
UpArrow,
|
|
459
|
+
NumLock,
|
|
460
|
+
KeypadForwardSlash,
|
|
461
|
+
KeypadAsterisk,
|
|
462
|
+
KeypadDash,
|
|
463
|
+
KeypadPlus,
|
|
464
|
+
KeypadEnter,
|
|
465
|
+
Keypad_1,
|
|
466
|
+
Keypad_2,
|
|
467
|
+
Keypad_3,
|
|
468
|
+
Keypad_4,
|
|
469
|
+
Keypad_5,
|
|
470
|
+
Keypad_6,
|
|
471
|
+
Keypad_7,
|
|
472
|
+
Keypad_8,
|
|
473
|
+
Keypad_9,
|
|
474
|
+
Keypad_0,
|
|
475
|
+
KeypadPeriod,
|
|
476
|
+
LAlt,
|
|
477
|
+
LShift,
|
|
478
|
+
LWin,
|
|
479
|
+
LControl,
|
|
480
|
+
RAlt,
|
|
481
|
+
RShift,
|
|
482
|
+
RWin,
|
|
483
|
+
RControl,
|
|
484
|
+
VolUp,
|
|
485
|
+
VolDown,
|
|
486
|
+
Mute,
|
|
487
|
+
Play,
|
|
488
|
+
Stop,
|
|
489
|
+
Next,
|
|
490
|
+
Prev,
|
|
491
|
+
AfterLast,
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export interface ControllerAnalogInputMessage {
|
|
495
|
+
nA: number;
|
|
496
|
+
x: number;
|
|
497
|
+
y: number;
|
|
498
|
+
nC: number;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export interface ControllerCommandMessage {
|
|
502
|
+
/**
|
|
503
|
+
* @todo enum
|
|
504
|
+
*/
|
|
505
|
+
eAction: number;
|
|
506
|
+
nControllerIndex: number;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export interface ControllerConfigCloudState {
|
|
510
|
+
bSyncDone: boolean;
|
|
511
|
+
bSyncConflict: boolean;
|
|
512
|
+
bSyncError: boolean;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export interface ControllerConfigInfoMessage {
|
|
516
|
+
appID: number;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export interface ControllerConfigInfoMessageQuery extends ControllerConfigInfoMessage {
|
|
520
|
+
bPersonalQueryDone: boolean;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export interface ControllerConfigInfoMessageList extends ControllerConfigInfoMessage {
|
|
524
|
+
nControllerType: number;
|
|
525
|
+
publishedFileID: string;
|
|
526
|
+
accountID: number;
|
|
527
|
+
Title: string;
|
|
528
|
+
Description: string;
|
|
529
|
+
URL: string;
|
|
530
|
+
timeUpdated: string;
|
|
531
|
+
bOfficial: boolean;
|
|
532
|
+
bProgenitorOfficial: boolean;
|
|
533
|
+
bRecommended: boolean;
|
|
534
|
+
bProgenitorRecommended: boolean;
|
|
535
|
+
bUsesSIAPI: boolean;
|
|
536
|
+
bUsesMouse: boolean;
|
|
537
|
+
bUsesKeyboard: boolean;
|
|
538
|
+
bUsesGamepad: boolean;
|
|
539
|
+
/**
|
|
540
|
+
* @todo unconfirmed
|
|
541
|
+
*/
|
|
542
|
+
eExportType: EControllerConfigExportType;
|
|
543
|
+
playtime: string;
|
|
544
|
+
bSelected: boolean;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export enum EControllerConfigExportType {
|
|
548
|
+
Unknown,
|
|
549
|
+
PersonalLocal,
|
|
550
|
+
PersonalCloud,
|
|
551
|
+
Community,
|
|
552
|
+
Template,
|
|
553
|
+
Official,
|
|
554
|
+
OfficialDefault,
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export enum EControllerRumbleSetting {
|
|
558
|
+
ControllerPreference,
|
|
559
|
+
Off,
|
|
560
|
+
On,
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// TODO: Not the actual name, but the enum is only represented in a dropdown
|
|
564
|
+
// options vector, ty valve
|
|
565
|
+
export enum EThirdPartyControllerConfiguration {
|
|
566
|
+
Off,
|
|
567
|
+
DefaultSetting,
|
|
568
|
+
On,
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export interface ControllerInputMessage {
|
|
572
|
+
nA: number;
|
|
573
|
+
bS: boolean;
|
|
574
|
+
nC: number;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export interface ActiveAccount {
|
|
578
|
+
strActiveAccountID: string;
|
|
579
|
+
strName: string;
|
|
580
|
+
strAvatarHash: string;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
export interface ControllerInfo {
|
|
584
|
+
strName: string;
|
|
585
|
+
eControllerType: EControllerType;
|
|
586
|
+
nXInputIndex: number;
|
|
587
|
+
nControllerIndex: number;
|
|
588
|
+
eRumblePreference: EControllerRumbleSetting;
|
|
589
|
+
bWireless: boolean;
|
|
590
|
+
unUniqueID: number;
|
|
591
|
+
unVendorID: number;
|
|
592
|
+
unProductID: number;
|
|
593
|
+
/** Bitmask */
|
|
594
|
+
unCapabilities: number;
|
|
595
|
+
strFirmwareBuildTime: string;
|
|
596
|
+
strSerialNumber: string;
|
|
597
|
+
strChipID: string;
|
|
598
|
+
nLEDColorR: number;
|
|
599
|
+
nLEDColorG: number;
|
|
600
|
+
nLEDColorB: number;
|
|
601
|
+
flLEDBrightness: number;
|
|
602
|
+
flLEDSaturation: number;
|
|
603
|
+
nTurnOnSound: number;
|
|
604
|
+
nTurnOffSound: number;
|
|
605
|
+
nLStickDeadzone: number;
|
|
606
|
+
nRStickDeadzone: number;
|
|
607
|
+
nLHapticStrength: number;
|
|
608
|
+
nRHapticStrength: number;
|
|
609
|
+
flLPadPressureCurve: number;
|
|
610
|
+
flRPadPressureCurve: number;
|
|
611
|
+
bHaptics: boolean;
|
|
612
|
+
bSWAntiDrift: boolean;
|
|
613
|
+
flGyroStationaryTolerance: number;
|
|
614
|
+
flAccelerometerStationaryTolerance: number;
|
|
615
|
+
bRemoteDevice: boolean;
|
|
616
|
+
bNintendoLayout: boolean;
|
|
617
|
+
bUseReversedLayout: boolean;
|
|
618
|
+
ActiveAccount: ActiveAccount | undefined;
|
|
619
|
+
vecAltAccounts: any[]; // The type for this property might need to be more specific based on the actual data structure
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export enum EControllerType {
|
|
623
|
+
None = -1,
|
|
624
|
+
Unknown,
|
|
625
|
+
UnknownSteamController,
|
|
626
|
+
SteamController, // Codename Gordon
|
|
627
|
+
SteamControllerV2, // Codename Headcrab
|
|
628
|
+
SteamControllerNeptune, // Steam Deck
|
|
629
|
+
FrontPanelBoard = 20,
|
|
630
|
+
Generic = 30,
|
|
631
|
+
XBox360Controller,
|
|
632
|
+
XBoxOneController,
|
|
633
|
+
PS3Controller,
|
|
634
|
+
PS4Controller,
|
|
635
|
+
WiiController,
|
|
636
|
+
AppleController,
|
|
637
|
+
AndroidController,
|
|
638
|
+
SwitchProController,
|
|
639
|
+
SwitchJoyConLeft,
|
|
640
|
+
SwitchJoyConRight,
|
|
641
|
+
SwitchJoyConPair,
|
|
642
|
+
SwitchProGenericInputOnlyController,
|
|
643
|
+
MobileTouch,
|
|
644
|
+
SwitchProXInputSwitchController,
|
|
645
|
+
PS5Controller,
|
|
646
|
+
XboxEliteController,
|
|
647
|
+
LastController, // Unverified
|
|
648
|
+
PS5EdgeController,
|
|
649
|
+
GenericKeyboard = 400,
|
|
650
|
+
GenericMouse = 800,
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export interface ControllerStateChange {
|
|
654
|
+
unControllerIndex: number;
|
|
655
|
+
unPacketNum: number;
|
|
656
|
+
/**
|
|
657
|
+
* Bitmask representing pressed upper buttons.
|
|
658
|
+
* - Bit 0-8: Unknown (@todo Please provide more details if known)
|
|
659
|
+
* - Bit 9: L4
|
|
660
|
+
* - Bit 10: R4
|
|
661
|
+
* - Bit 11-13: Unknown (@todo Please provide more details if known)
|
|
662
|
+
* - Bit 14: Left Joystick Touch
|
|
663
|
+
* - Bit 15: Right Joystick Touch
|
|
664
|
+
* - Bit 16-17: Unknown (@todo Please provide more details if known)
|
|
665
|
+
* - Bit 18: Quick Access Menu
|
|
666
|
+
*/
|
|
667
|
+
ulUpperButtons: number;
|
|
668
|
+
/**
|
|
669
|
+
* Bitmask representing pressed buttons.
|
|
670
|
+
* - Bit 0: R2
|
|
671
|
+
* - Bit 1: L2
|
|
672
|
+
* - Bit 2: R1
|
|
673
|
+
* - Bit 3: L1
|
|
674
|
+
* - Bit 4: Y
|
|
675
|
+
* - Bit 5: B
|
|
676
|
+
* - Bit 6: X
|
|
677
|
+
* - Bit 7: A
|
|
678
|
+
* - Bit 8: D-Pad Up
|
|
679
|
+
* - Bit 9: D-Pad Right
|
|
680
|
+
* - Bit 10: D-Pad Left
|
|
681
|
+
* - Bit 11: D-Pad Down
|
|
682
|
+
* - Bit 12: Select
|
|
683
|
+
* - Bit 13: Steam/Home
|
|
684
|
+
* - Bit 14: Start
|
|
685
|
+
* - Bit 15: L5
|
|
686
|
+
* - Bit 16: R5
|
|
687
|
+
* - Bit 17: Left Touchpad Click
|
|
688
|
+
* - Bit 18: Right Touchpad Click
|
|
689
|
+
* - Bit 19: Left Touchpad Touch
|
|
690
|
+
* - Bit 20: Right Touchpad Touch
|
|
691
|
+
* - Bit 21: Unknown (@todo Please provide more details if known)
|
|
692
|
+
* - Bit 22: L3
|
|
693
|
+
* - Bit 23-25: Unknown (@todo Please provide more details if known)
|
|
694
|
+
* - Bit 26: R3
|
|
695
|
+
* - Bit 27-28: Unknown (@todo Please provide more details if known)
|
|
696
|
+
* - Bit 29: Mute (Dualsense)
|
|
697
|
+
* - Bit 30-31: Unknown (@todo Please provide more details if known)
|
|
698
|
+
*/
|
|
699
|
+
ulButtons: number;
|
|
700
|
+
sLeftPadX: number;
|
|
701
|
+
sLeftPadY: number;
|
|
702
|
+
sRightPadX: number;
|
|
703
|
+
sRightPadY: number;
|
|
704
|
+
sCenterPadX: number;
|
|
705
|
+
sCenterPadY: number;
|
|
706
|
+
sLeftStickX: number;
|
|
707
|
+
sLeftStickY: number;
|
|
708
|
+
sRightStickX: number;
|
|
709
|
+
sRightStickY: number;
|
|
710
|
+
sTriggerL: number;
|
|
711
|
+
sTriggerR: number;
|
|
712
|
+
flTrustedGravityVectorX: number;
|
|
713
|
+
flTrustedGravityVectorY: number;
|
|
714
|
+
flTrustedGravityVectorZ: number;
|
|
715
|
+
flSoftwareQuatW: number;
|
|
716
|
+
flSoftwareQuatX: number;
|
|
717
|
+
flSoftwareQuatY: number;
|
|
718
|
+
flSoftwareQuatZ: number;
|
|
719
|
+
flSoftwareGyroDegreesPerSecondPitch: number;
|
|
720
|
+
flSoftwareGyroDegreesPerSecondYaw: number;
|
|
721
|
+
flSoftwareGyroDegreesPerSecondRoll: number;
|
|
722
|
+
flHardwareQuatW: number;
|
|
723
|
+
flHardwareQuatX: number;
|
|
724
|
+
flHardwareQuatY: number;
|
|
725
|
+
flHardwareQuatZ: number;
|
|
726
|
+
flHardwareGyroDegreesPerSecondPitch: number;
|
|
727
|
+
flHardwareGyroDegreesPerSecondYaw: number;
|
|
728
|
+
flHardwareGyroDegreesPerSecondRoll: number;
|
|
729
|
+
flGyroNoiseLength: number;
|
|
730
|
+
flGyroCalibrationProgress: number;
|
|
731
|
+
flGravityVectorX: number;
|
|
732
|
+
flGravityVectorY: number;
|
|
733
|
+
flGravityVectorZ: number;
|
|
734
|
+
flAccelerometerNoiseLength: number;
|
|
735
|
+
sBatteryLevel: number;
|
|
736
|
+
sPressurePadLeft: number;
|
|
737
|
+
sPressurePadRight: number;
|
|
738
|
+
sPressureBumperLeft: number;
|
|
739
|
+
sPressureBumperRight: number;
|
|
740
|
+
unHardwareUpdateInMicrosec: number;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export interface GameKeyboardMessage {
|
|
744
|
+
m_bOpen: boolean;
|
|
745
|
+
nAppID: number;
|
|
746
|
+
m_dwPID: number;
|
|
747
|
+
m_dwOverlayPID: number;
|
|
748
|
+
m_hPipe: number;
|
|
749
|
+
/** @todo enum */
|
|
750
|
+
m_eInputMode: number;
|
|
751
|
+
/** @todo enum */
|
|
752
|
+
m_eLineInputMode: number;
|
|
753
|
+
m_pchDescription: string;
|
|
754
|
+
m_unCharMax: number;
|
|
755
|
+
m_pchExistingText: string;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export interface TouchMenuMessage {
|
|
759
|
+
bHasVirtualMenus: boolean;
|
|
760
|
+
unControllerIndex: number;
|
|
761
|
+
appID: number;
|
|
762
|
+
}
|