IMouseState Interface
Definition
Section titled “Definition”Reports the state of the mouse.
public interface IMouseStateProperties
Section titled “Properties”IsLeftButtonDown
Section titled “IsLeftButtonDown”true when the left mouse button is pressed; otherwise, false.
bool IsLeftButtonDown { get; }IsRightButtonDown
Section titled “IsRightButtonDown”true when the right mouse button is pressed; otherwise, false.
bool IsRightButtonDown { get; }IsMiddleButtonDown
Section titled “IsMiddleButtonDown”true when the middle mouse button is pressed; otherwise, false.
bool IsMiddleButtonDown { get; }ScreenPosition
Section titled “ScreenPosition”The pixel position of the mouse on the screen relative to the game window.
Point ScreenPosition { get; }MouseWheel
Section titled “MouseWheel”The value of the mouse wheel.
int MouseWheel { get; }Methods
Section titled “Methods”Refresh()
Section titled “Refresh()”If applicable to the host implementation, refreshes the mouse state.
void Refresh()