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