Jump to content

API Mouse.GetClickSide: Difference between revisions

From Flowcode Help
JonnyW (talk | contribs)
No edit summary
JonnyW (talk | contribs)
XML import of API documentation
Line 1: Line 1:




<sidebar>API contents</sidebar>
<sidebar>API Contents</sidebar>
Gets the side of the component clicked on, 0 to 5
Gets the side of the component clicked on, 0 to 5



Revision as of 14:27, 9 August 2013


<sidebar>API Contents</sidebar> Gets the side of the component clicked on, 0 to 5

Class hierarchy

Mouse

GetClickSide

Parameters

This function has no parameters


Return value

BYTE

Returns the side of the component clicked on, 0 to 5


Detailed description

This call retrieves the face of the bounding box intersected by the mouse. This is always the closest face to the screen.

Face numbers

The faces of the bounding box are ordered according to the following table:

Face Position
0 XY plane, Z=-1
1 YZ plane, X=-1
2 XZ plane, Y=-1
3 XZ plane, Y=1
4 YZ plane, X=1
5 XY plane, Z=1

Each face, when added to the opposite face on the cube, adds up to 5 (so each YZ face = 1 + 4 = 5).


Examples

Calling in a calculation

  • Declare a variable 'result' of type BYTE
  • Add to a calculation icon:
    result = ::Mouse.GetClickSide()

No additional examples