Kanda Players 0.7.0
Loading...
Searching...
No Matches
MouseInputCollector Class Reference

More...

+ Inheritance diagram for MouseInputCollector:

Public Member Functions

 MouseInputCollector (IScreen screen)
 
void Enable ()
 Enable the input collector, prompting it to set up and enable appropriate input actions.
 
float2 GetDeltaDegrees ()
 Gets the mouse delta in screen degrees. This delta is the same regardless of the screen size.
 
bool GetLeftButtonPress ()
 Gets the left mouse button click state.
 
bool GetLeftButtonWasPressed ()
 Gets the left mouse button was pressed state.
 
bool GetLeftButtonWasReleased ()
 Gets the left mouse button release after pressed.
 
bool GetRightButtonPress ()
 Gets the right mouse button click state.
 
bool GetRightButtonWasPressed ()
 Gets the right mouse button was pressed state.
 
bool GetRightButtonWasReleased ()
 Gets the right mouse button release after pressed.
 
void Dispose ()
 

Properties

bool IsEnabled [get]
 True if the input collector has been enabled.
 
- Properties inherited from IInputCollector

Detailed Description

Member Function Documentation

◆ Enable()

void Enable ( )
inline

Enable the input collector, prompting it to set up and enable appropriate input actions.

Implements IInputCollector.

◆ GetDeltaDegrees()

float2 GetDeltaDegrees ( )
inline

Gets the mouse delta in screen degrees. This delta is the same regardless of the screen size.

Implements IMouseInputCollector.

◆ GetLeftButtonPress()

bool GetLeftButtonPress ( )
inline

Gets the left mouse button click state.

Implements IMouseInputCollector.

◆ GetLeftButtonWasPressed()

bool GetLeftButtonWasPressed ( )
inline

Gets the left mouse button was pressed state.

Implements IMouseInputCollector.

◆ GetLeftButtonWasReleased()

bool GetLeftButtonWasReleased ( )
inline

Gets the left mouse button release after pressed.

Implements IMouseInputCollector.

◆ GetRightButtonPress()

bool GetRightButtonPress ( )
inline

Gets the right mouse button click state.

Implements IMouseInputCollector.

◆ GetRightButtonWasPressed()

bool GetRightButtonWasPressed ( )
inline

Gets the right mouse button was pressed state.

Implements IMouseInputCollector.

◆ GetRightButtonWasReleased()

bool GetRightButtonWasReleased ( )
inline

Gets the right mouse button release after pressed.

Implements IMouseInputCollector.

Property Documentation

◆ IsEnabled

bool IsEnabled
get

True if the input collector has been enabled.

Implements IInputCollector.


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