mouse class : XButton2 getter

Description

Gets a value that indicates whether the side button of the mouse is pressed.

Syntax

mouseInstance.XButton2

Arguments

None.

Return value

ClassDescription
boolValue that indicates whether the side button of the mouse is pressed.

Sample code

1:

mouse m = new mouse();

2:

bool pressed = m.XButton2;

Notes

If the XButton2 button has pressed, return value is true.

If the XButton2 button has not pressed, return value is false.

Links for reference

Copyright © Cooker All rights reserved.