VirtualInputManager

Show Deprecated
Service

VirtualInputManager is an internal service used by Roblox to record inputs and play them back during performance benchmarking tests. This service's API can only be used by CoreScript.

Summary

Properties

HIDDEN
NOT REPLICATED

Events

Methods

Dump(): void  


HandleGamepadAxisInput(objectId: number, keyCode: KeyCode, x: number, y: number, z: number): void  


HandleGamepadButtonInput(deviceId: number, keyCode: KeyCode, buttonState: number): void  


HandleGamepadConnect(deviceId: number): void  


HandleGamepadDisconnect(deviceId: number): void  


SendGravityEvent(x: number, y: number, z: number): void  


SendGyroscopeEvent(quatX: number, quatY: number, quatZ: number, quatW: number): void  


SendKeyEvent(isPressed: boolean, keyCode: KeyCode, isRepeatedKey: boolean, layerCollector: Instance): void  


SendMouseButtonEvent(x: number, y: number, mouseButton: number, isDown: boolean, layerCollector: Instance, repeatCount: number): void  


SendMouseMoveEvent(x: number, y: number, layerCollector: Instance): void  


SendMouseWheelEvent(x: number, y: number, isForwardScroll: boolean, layerCollector: Instance): void  


SendTextInputCharacterEvent(str: string, layerCollector: Instance): void  


SendTouchEvent(touchId: number, state: number, x: number, y: number): void  


SetInputTypesToIgnore(inputTypesToIgnore: Variant): void  


StartPlaying(fileName: string): void  


StartPlayingJSON(string: string): void  


StartRecording(): void  


StopPlaying(): void  


StopRecording(): void  


sendRobloxEvent(namespace: string, detail: string, detailType: string): void  


sendThemeChangeEvent(themeName: string): void  


WaitForInputEventsProcessed(): void  YIELDS


Properties

AdditionalLuaState

Hidden
Not Replicated

Events

PlaybackCompleted

Roblox Script Security

Parameters

additionalLuaState: string

RecordingCompleted

Roblox Script Security

Parameters

result: string

Methods

Dump

void
Roblox Script Security

Returns

void

HandleGamepadAxisInput

void
Roblox Script Security

Parameters

objectId: number
keyCode: KeyCode

Returns

void

HandleGamepadButtonInput

void
Roblox Script Security

Parameters

deviceId: number
keyCode: KeyCode
buttonState: number

Returns

void

HandleGamepadConnect

void
Roblox Script Security

Parameters

deviceId: number

Returns

void

HandleGamepadDisconnect

void
Roblox Script Security

Parameters

deviceId: number

Returns

void

SendAccelerometerEvent

void
Roblox Script Security

Parameters


Returns

void

SendGravityEvent

void
Roblox Script Security

Parameters


Returns

void

SendGyroscopeEvent

void
Roblox Script Security

Parameters

quatX: number
quatY: number
quatZ: number
quatW: number

Returns

void

SendKeyEvent

void
Roblox Script Security

Parameters

isPressed: boolean
keyCode: KeyCode
isRepeatedKey: boolean
layerCollector: Instance

Returns

void

SendMouseButtonEvent

void
Roblox Script Security

Parameters

mouseButton: number
isDown: boolean
layerCollector: Instance
repeatCount: number

Returns

void

SendMouseMoveEvent

void
Roblox Script Security

Parameters

layerCollector: Instance

Returns

void

SendMouseWheelEvent

void
Roblox Script Security

Parameters

isForwardScroll: boolean
layerCollector: Instance

Returns

void

SendTextInputCharacterEvent

void
Roblox Script Security

Parameters

str: string
layerCollector: Instance

Returns

void

SendTouchEvent

void
Roblox Script Security

Parameters

touchId: number
state: number

Returns

void

SetInputTypesToIgnore

void
Roblox Script Security

Parameters

inputTypesToIgnore: Variant

Returns

void

StartPlaying

void
Roblox Script Security

Parameters

fileName: string

Returns

void

StartPlayingJSON

void
Roblox Script Security

Parameters

string: string

Returns

void

StartRecording

void
Roblox Script Security

Returns

void

StopPlaying

void
Roblox Script Security

Returns

void

StopRecording

void
Roblox Script Security

Returns

void

sendRobloxEvent

void
Roblox Script Security

Parameters

namespace: string
detail: string
detailType: string

Returns

void

sendThemeChangeEvent

void
Roblox Script Security

Parameters

themeName: string

Returns

void

WaitForInputEventsProcessed

void
Yields
Roblox Script Security

Returns

void