Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Attributes | List of all members
Mouse.MouseButton Class Reference

Public Member Functions

void ClearMouseState ()
 
bool GetButton ()
 
bool GetButtonDown ()
 
bool GetButtonUp ()
 
bool GetClick ()
 
bool GetDoubleClick (bool isDelegate=false)
 
Vector2 GetDragDelta ()
 
 MouseButton (Mouse owner, int button)
 
void Update ()
 
bool WasDragging (float delta=400f)
 

Static Public Attributes

static RaycastHit hoveredPartHitInfo
 

Constructor & Destructor Documentation

Mouse.MouseButton.MouseButton ( Mouse  owner,
int  button 
)
inline

Member Function Documentation

void Mouse.MouseButton.ClearMouseState ( )
inline
bool Mouse.MouseButton.GetButton ( )
inline
bool Mouse.MouseButton.GetButtonDown ( )
inline
bool Mouse.MouseButton.GetButtonUp ( )
inline
bool Mouse.MouseButton.GetClick ( )
inline

summary> When getting double click state inside delegate or callback functions (i.e. from buttons), set isDelegate = true /summary>

bool Mouse.MouseButton.GetDoubleClick ( bool  isDelegate = false)
inline
Vector2 Mouse.MouseButton.GetDragDelta ( )
inline
void Mouse.MouseButton.Update ( )
inline

< otherwise if aborting, wait until the coroutine is finished cleaning up before polling mouse again

bool Mouse.MouseButton.WasDragging ( float  delta = 400f)
inline

Member Data Documentation

RaycastHit Mouse.MouseButton.hoveredPartHitInfo
static

The documentation for this class was generated from the following file: