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

joystick

Read a joystick value relative to its centre point including any dead zone.
The returned value will be 0 if the value is within the centre dead zone. Negative values represent 'left' or 'up, and positive values represent 'right' or 'down'.
Syntax
SonyPS2. joystick(stick)
Where SonyPS2 is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'stick'
The joystick to test.
Returns
int8_t

 

 

Valid XHTML 1.0 Transitional