Click or drag to resize

EventCheckerCheckClickEvent Method (Event)

Checks if the mouse click event has happen during the frame.

Namespace:  KSPDev.InputUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
public static bool CheckClickEvent(
	Event ev
)
Request Example View Source

Parameters

ev
Type: UnityEngineEvent
The event to match for.

Return Value

Type: Boolean
true if the requested combination has matched the current frame state.
Remarks
This check treats "left" and "right" modifiers equally. And it doesn't consider any of the state modifiers (CAPS, NUM, SCROLL, etc.).
See Also