Difference between revisions of "Working with User Objects"

From HSYCO
Jump to navigation Jump to search
Line 10: Line 10:
  
 
* Repeat mode off - the command is sent on the ''mouse up'' or ''touch up'' events
 
* Repeat mode off - the command is sent on the ''mouse up'' or ''touch up'' events
[[File:Working with User.1.gif]]
+
:[[File:Working with User.1.gif]]
 
* Repeat mode on - three types of commands are sent:
 
* Repeat mode on - three types of commands are sent:
 
**down: on ''mouse down'' or ''touch down'' events
 
**down: on ''mouse down'' or ''touch down'' events
Line 16: Line 16:
 
**up: on ''mouse up'' or ''touch up'' events, for a short press (less than a second, so no repeat command has been sent yet)
 
**up: on ''mouse up'' or ''touch up'' events, for a short press (less than a second, so no repeat command has been sent yet)
 
**stop: on ''mouse up'' or ''touch up'' events, for a long press (more than a second, so at least a repeat command has been sent)
 
**stop: on ''mouse up'' or ''touch up'' events, for a long press (more than a second, so at least a repeat command has been sent)
[[File:Working with User.2.gif]]
+
:[[File:Working with User.2.gif]]

Revision as of 12:24, 6 March 2014

Introduction to User objects

User objects are used to send commands to the server. There are few different user objects:


Every user object has a name and a parameter, that are sent to the server, and a repeat mode. If this mode is enabled, the behaviour will change:

  • Repeat mode off - the command is sent on the mouse up or touch up events
Working with User.1.gif
  • Repeat mode on - three types of commands are sent:
    • down: on mouse down or touch down events
    • repeat: if the button is still pressed, a repeat command is sent every second
    • up: on mouse up or touch up events, for a short press (less than a second, so no repeat command has been sent yet)
    • stop: on mouse up or touch up events, for a long press (more than a second, so at least a repeat command has been sent)
Working with User.2.gif