InputClientEmulateTouchFromMouseEventAsync Method |
Version 88.2.90
Emulates touch event from the mouse event parameters.
Namespace:
CefSharp.DevTools.Input
Assembly:
CefSharp (in CefSharp.dll) Version: 88.2.90.0 (88.2.90.0)
Syntax public Task<DevToolsMethodResponse> EmulateTouchFromMouseEventAsync(
string type,
int x,
int y,
MouseButton button,
Nullable<long> timestamp = null,
Nullable<long> deltaX = null,
Nullable<long> deltaY = null,
Nullable<int> modifiers = null,
Nullable<int> clickCount = null
)
public:
Task<DevToolsMethodResponse^>^ EmulateTouchFromMouseEventAsync(
String^ type,
int x,
int y,
MouseButton button,
Nullable<long long> timestamp = nullptr,
Nullable<long long> deltaX = nullptr,
Nullable<long long> deltaY = nullptr,
Nullable<int> modifiers = nullptr,
Nullable<int> clickCount = nullptr
)
Parameters
- type
- Type: SystemString
Type of the mouse event. - x
- Type: SystemInt32
X coordinate of the mouse pointer in DIP. - y
- Type: SystemInt32
Y coordinate of the mouse pointer in DIP. - button
- Type: CefSharp.DevTools.InputMouseButton
Mouse button. Only "none", "left", "right" are supported. - timestamp (Optional)
- Type: SystemNullableInt64
Time at which the event occurred (default: current time). - deltaX (Optional)
- Type: SystemNullableInt64
X delta in DIP for mouse wheel event (default: 0). - deltaY (Optional)
- Type: SystemNullableInt64
Y delta in DIP for mouse wheel event (default: 0). - modifiers (Optional)
- Type: SystemNullableInt32
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0). - clickCount (Optional)
- Type: SystemNullableInt32
Number of times the mouse button was clicked (default: 0).
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also