Difference between revisions of "The Queue of Events"

From Hydrover
Jump to: navigation, search
(Creata pagina con "= Introduction = The queue of events is the queue where the system send events such as: input change, user action, encoder or transducer match, and from where the user's prog...")
 
(Structure of an Event)
Line 5: Line 5:
 
= Structure of an Event =
 
= Structure of an Event =
  
An event is defined in the library as an array of values <code>[.opcode, .p0, .p1, .p2, .p3]</code>
+
An event is defined in the library as an array of values:
where the first value <code>.opcode</code> is used to identify the event and the  subsequent values <code>.p0, .p1, .p2, .p3</code> contains informations specific to that event.
+
 
 +
<code>[.opcode, .p0, .p1, .p2, .p3]</code>
 +
 
 +
where:
 +
 
 +
* <code>.opcode</code> is used to uniquely identify the event
 +
* <code>.p0, .p1, .p2, .p3</code> contains informations specific to that event
  
 
= Events' Library Functions =
 
= Events' Library Functions =

Revision as of 15:35, 21 June 2017

Introduction

The queue of events is the queue where the system send events such as: input change, user action, encoder or transducer match, and from where the user's program get events to process and react to.

Structure of an Event

An event is defined in the library as an array of values:

[.opcode, .p0, .p1, .p2, .p3]

where:

  • .opcode is used to uniquely identify the event
  • .p0, .p1, .p2, .p3 contains informations specific to that event

Events' Library Functions

Processing Events