NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_sysreadbutton.nxc
This is an example of how to use the
SysReadButton
function along with the
ReadButtonType
structure.
task main()
{
ReadButtonType
rbArgs;
rbArgs.
Index
=
BTNRIGHT
;
SysReadButton
(rbArgs);
if
(rbArgs.
Pressed
) {
/* do something */
}
}
Generated by
1.8.2