StudioDeviceEmulatorService
This class is not replicated. Its interface does not cross the network boundary.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
Memory category | Instances |
---|
Member index 17
Removed member index 6
History | Member | |
---|---|---|
632 | ConnectGamepad(deviceId: int, gamepadDeviceType: GamepadType): null | |
632 | DisconnectGamepad(deviceId: int): null | |
632 | GetKeyboardShortcut(deviceId: int, gamepadKey: KeyCode, position: Vector3): Array | |
632 | SendGamepadEvent(deviceId: int, keyCode: KeyCode, position: Vector3, rotation: Vector3): null | |
632 | SetGamepadEmulationEnabled(enable: bool): null | |
632 | UpdateKeyMapping(deviceId: int, keyboardShortcut: Array, gamepadKey: KeyCode, position: Vector3): bool |
Description
History 40
- 632 Remove UpdateKeyMapping
- 632 Remove SetGamepadEmulationEnabled
- 632 Remove SendGamepadEvent
- 632 Remove GetKeyboardShortcut
- 632 Remove DisconnectGamepad
- 632 Remove ConnectGamepad
- 629 Add SetGamepadEmulationEnabled
- 628 Add UpdateKeyMapping
- 628 Add GetKeyboardShortcut
- 622 Add DisconnectGamepad
- 622 Add ConnectGamepad
- 619 Add SendGamepadEvent
- 573 Change ReturnType of SetCurrentOrientation from void to null
- 573 Change ReturnType of SetCurrentDeviceId from void to null
- 554 Change Default of from Vector2(0, 0) to
- 554 Change Default of from false to
- 554 Change Default of from true to
- 554 Change Default of from false to
- 553 Change Default of from to Vector2(0, 0)
- 553 Change Default of from to false
- 553 Change Default of from to true
- 553 Change Default of from to false
- 540 Add TouchInBoundsChanged
- 540 Add GetTouchInBounds
- 539 Add
- 538 Add TouchPositionsChanged
- 538 Add GetTouchPosition
- 538 Add GetMaxNumTouches
- 538 Add
- 538 Add
- 538 Add
- 471 Add OrientationChanged
- 471 Add CurrentDeviceIdChanged
- 471 Add SetCurrentOrientation
- 471 Add SetCurrentDeviceId
- 471 Add HasDeviceWithId
- 471 Add GetCurrentOrientation
- 471 Add GetCurrentDeviceId
- 471 Add EmulatePCDeviceWithResolution
- 471 Add StudioDeviceEmulatorService
Members 17
CurrentDeviceIdChanged
Parameters (0) | ||
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
EmulatePCDeviceWithResolution
Parameters (2) | ||
---|---|---|
deviceId | string | |
resolution | Vector2 | |
Returns (1) | ||
bool |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
GetCurrentDeviceId
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
string |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
GetCurrentOrientation
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
ScreenOrientation |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
GetMaxNumTouches
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
int |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
- 538 Add GetMaxNumTouches
GetTouchInBounds
Parameters (1) | ||
---|---|---|
index | int | |
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
- 540 Add GetTouchInBounds
GetTouchPosition
Parameters (1) | ||
---|---|---|
index | int | |
Returns (1) | ||
Vector2 |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
- 538 Add GetTouchPosition
HasDeviceWithId
Parameters (1) | ||
---|---|---|
deviceId | string | |
Returns (1) | ||
bool |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
- 471 Add HasDeviceWithId
OrientationChanged
Parameters (0) | ||
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
SetCurrentDeviceId
Parameters (1) | ||
---|---|---|
deviceId | string | |
Returns (1) | ||
null |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 573 Change ReturnType of SetCurrentDeviceId from void to null
- 471 Add SetCurrentDeviceId
SetCurrentOrientation
Parameters (1) | ||
---|---|---|
orientation | ScreenOrientation | |
Returns (1) | ||
null |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 573 Change ReturnType of SetCurrentOrientation from void to null
- 471 Add SetCurrentOrientation
TouchInBoundsChanged
Parameters (0) | ||
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
TouchPositionsChanged
Parameters (0) | ||
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
Removed members 6
ConnectGamepad
Parameters (2) | ||
---|---|---|
deviceId | int | |
gamepadDeviceType | GamepadType | |
Returns (1) | ||
null |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 632 Remove ConnectGamepad
- 622 Add ConnectGamepad
DisconnectGamepad
Parameters (1) | ||
---|---|---|
deviceId | int | |
Returns (1) | ||
null |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 632 Remove DisconnectGamepad
- 622 Add DisconnectGamepad
GetKeyboardShortcut
Parameters (3) | ||
---|---|---|
deviceId | int | |
gamepadKey | KeyCode | |
position | Vector3 | |
Returns (1) | ||
Array |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 632 Remove GetKeyboardShortcut
- 628 Add GetKeyboardShortcut
SendGamepadEvent
Parameters (4) | ||
---|---|---|
deviceId | int | |
keyCode | KeyCode | |
position | Vector3 | |
rotation | Vector3 | |
Returns (1) | ||
null |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 632 Remove SendGamepadEvent
- 619 Add SendGamepadEvent
SetGamepadEmulationEnabled
Parameters (1) | ||
---|---|---|
enable | bool | |
Returns (1) | ||
null |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
UpdateKeyMapping
Parameters (4) | ||
---|---|---|
deviceId | int | |
keyboardShortcut | Array | |
gamepadKey | KeyCode | |
position | Vector3 | |
Returns (1) | ||
bool |
This function yields. It will block the calling thread until completion.
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 632 Remove UpdateKeyMapping
- 628 Add UpdateKeyMapping