WSCLib SDK 1.0.0
GPU-accelerated video output framework for Windows
Loading...
Searching...
No Matches
Mouse & Keyboard Input

Enumerations

enum  WSCWMouseButton { WSCW_MOUSE_LEFT = 0 , WSCW_MOUSE_MIDDLE = 1 , WSCW_MOUSE_RIGHT = 2 }
 Mouse button identifiers. More...

Functions

WSCWResult WSCW_SendMouseMove (int browserId, int x, int y)
 Send a mouse move event.
WSCWResult WSCW_SendMouseDown (int browserId, WSCWMouseButton button, int x, int y)
 Send a mouse button down event.
WSCWResult WSCW_SendMouseUp (int browserId, WSCWMouseButton button, int x, int y)
 Send a mouse button up event.
WSCWResult WSCW_SendMouseWheel (int browserId, int x, int y, int deltaX, int deltaY)
 Send a mouse scroll event.
WSCWResult WSCW_SendKeyEvent (int browserId, int keyCode, int isKeyUp, int modifiers)
 Send a key event.
WSCWResult WSCW_SendChar (int browserId, int character)
 Send a character input event (for text input).

Detailed Description

Enumeration Type Documentation

◆ WSCWMouseButton

Mouse button identifiers.

Enumerator
WSCW_MOUSE_LEFT 

Left button.

WSCW_MOUSE_MIDDLE 

Middle button.

WSCW_MOUSE_RIGHT 

Right button.

Function Documentation

◆ WSCW_SendMouseMove()

WSCWResult WSCW_SendMouseMove ( int browserId,
int x,
int y )

Send a mouse move event.

Parameters
browserIdBrowser ID.
xX coordinate in pixels.
yY coordinate in pixels.
Returns
WSCW_OK on success.

◆ WSCW_SendMouseDown()

WSCWResult WSCW_SendMouseDown ( int browserId,
WSCWMouseButton button,
int x,
int y )

Send a mouse button down event.

Parameters
browserIdBrowser ID.
buttonMouse button.
xX coordinate.
yY coordinate.
Returns
WSCW_OK on success.

◆ WSCW_SendMouseUp()

WSCWResult WSCW_SendMouseUp ( int browserId,
WSCWMouseButton button,
int x,
int y )

Send a mouse button up event.

Parameters
browserIdBrowser ID.
buttonMouse button.
xX coordinate.
yY coordinate.
Returns
WSCW_OK on success.

◆ WSCW_SendMouseWheel()

WSCWResult WSCW_SendMouseWheel ( int browserId,
int x,
int y,
int deltaX,
int deltaY )

Send a mouse scroll event.

Parameters
browserIdBrowser ID.
xX coordinate.
yY coordinate.
deltaXHorizontal scroll delta.
deltaYVertical scroll delta.
Returns
WSCW_OK on success.

◆ WSCW_SendKeyEvent()

WSCWResult WSCW_SendKeyEvent ( int browserId,
int keyCode,
int isKeyUp,
int modifiers )

Send a key event.

Parameters
browserIdBrowser ID.
keyCodeWindows virtual key code (VK_*).
isKeyUp0 = key down, 1 = key up.
modifiersModifier flags: 1 = Shift, 2 = Ctrl, 4 = Alt.
Returns
WSCW_OK on success.

◆ WSCW_SendChar()

WSCWResult WSCW_SendChar ( int browserId,
int character )

Send a character input event (for text input).

Parameters
browserIdBrowser ID.
characterUTF-16 character code.
Returns
WSCW_OK on success.