Difference between revisions of "INPUTEVENTS()"

From Lianjapedia
Jump to: navigation, search
(Created page with "==Purpose== Returns the number of input events ==Syntax== INPUTEVENTS() ==See Also== App Settings, Lianja System Object ==Description== The INPUTEVENTS() com...")
 
 
Line 16: Line 16:
 
<code lang="recital">
 
<code lang="recital">
 
nCurrevents = inputevents()
 
nCurrevents = inputevents()
// assumes nPrevEvents variable already declared/set and in scope
+
// 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

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