Difference between revisions of "API Mouse.GetButtons"
From Flowcode Help
Jump to navigationJump to search (XML import of API auto-gen) |
(XML import) |
||
Line 2: | Line 2: | ||
Gets the button state from the mouse: 4 for left, 1 for right | Gets the button state from the mouse: 4 for left, 1 for right | ||
+ | <div style="width:25%; float:right" class="toc"> | ||
+ | ===Class hierarchy=== | ||
+ | :Mouse | ||
+ | ::GetButtons | ||
+ | </div> | ||
+ | __TOC__ | ||
− | + | ==Parameters== | |
''This function has no parameters'' | ''This function has no parameters'' | ||
− | + | ==Return value== | |
[[Variable types|BYTE]] | [[Variable types|BYTE]] | ||
Returns the button state from the mouse: 4 for left, 1 for right | Returns the button state from the mouse: 4 for left, 1 for right | ||
− | + | ==Detailed description== | |
''No additional information'' | ''No additional information'' | ||
− | + | ==Examples== | |
− | + | ===Calling in a calculation=== | |
* Declare a variable 'result' of type BYTE | * Declare a variable 'result' of type BYTE | ||
− | * Add to a calculation icon: <pre class="brush:[ | + | * Add to a calculation icon: <pre class="brush:[cpp]">result = ::Mouse.GetButtons()</pre> |
Revision as of 16:34, 11 May 2013
<sidebar>API contents</sidebar> Gets the button state from the mouse: 4 for left, 1 for right
Class hierarchy
- Mouse
- GetButtons
Contents
Parameters
This function has no parameters
Return value
Returns the button state from the mouse: 4 for left, 1 for right
Detailed description
No additional information
Examples
Calling in a calculation
- Declare a variable 'result' of type BYTE
- Add to a calculation icon:
result = ::Mouse.GetButtons()