WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

buttonPressure

Return a value representing how hard a button has been pressed.
This will return 0 if the button is not pressed at all up to a value of 255 if its has been pressed hard. If the controller has not been put into analog mode then it will only return 0 or 255.
Syntax
SonyPS2. buttonPressure(button)
Where SonyPS2 is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'button'
The single button to test.
Returns
uint8_t

 

 

Valid XHTML 1.0 Transitional