There are four different states for a switch to be: off, press, release, release after a long press, and release after a very long press.
A byte with a value from 0 to 4
if returns a 0, the switch is not press
if 1 the switch is press,
if 2 the switch is been release after a press,
if 3 the switch is been release after a press for more then 3 sec and less then 6
if 4 the switch is been release after a press more then 6 seconds.
To change the value of what is a long press and longLong press see example 'longPress' and 'longLongPress'