INPUTEVENTS()

From Lianjapedia
Revision as of 10:17, 9 January 2015 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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