Difference between revisions of "INPUTEVENTS()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (Created page with "==Purpose== Returns the number of input events ==Syntax== INPUTEVENTS() ==See Also== App Settings, Lianja System Object ==Description== The INPUTEVENTS() com...") |
Yvonne.milne (Talk | contribs) |
||
Line 16: | Line 16: | ||
<code lang="recital"> | <code lang="recital"> | ||
nCurrevents = inputevents() | nCurrevents = inputevents() | ||
− | // | + | // Assumes nPrevEvents variable already declared/set and in scope |
if nCurrEvents = nPrevEvents | if nCurrEvents = nPrevEvents | ||
// No events since last check, return to App Center | // No events since last check, return to App Center |
Latest revision as of 10:17, 9 January 2015
Contents
Purpose
Returns the number of input events
Syntax
INPUTEVENTS()
See Also
App Settings, Lianja System Object
Description
The INPUTEVENTS() command returns the number of input events, that is mouse clicks, touches or key presses.
See also the App 'Inactive' event delegate and 'Inactive interval' attribute in App Settings.
Example
nCurrevents = inputevents() // Assumes nPrevEvents variable already declared/set and in scope if nCurrEvents = nPrevEvents // No events since last check, return to App Center Lianja.Home() endif nPrevEvents = nCurrEvents