Indicates whether a mouse button is pressed.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public bool IsKeyPressed(
	MouseButtons button,
	bool whenFocused
)

Parameters

button
Type: System.Windows.Forms..::.MouseButtons
Mouse button to be tested.
whenFocused
Type: System..::.Boolean
Returns the pressed mouse button unless the panel is not focused.

Return Value

Returns trueTruetruetrue (True in Visual Basic) if the mouse button is pressed.

See Also