NXC
Version 1.2.1 r5
|
|
inline |
Read mindsensors playstation controller values.
Read playstation controller values from the mindsensors playstation sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be configured as a Lowspeed port before using this function.
port | The sensor port. See Input port constants. |
i2caddr | The sensor I2C address. See sensor documentation for this value. |
btnset1 | The button set 1 values. See MindSensors PSP-Nx button set 1 constants. |
btnset2 | The button set 2 values. See MindSensors PSP-Nx button set 2 constants. |
xleft | The left joystick x value. |
yleft | The left joystick y value. |
xright | The right joystick x value. |
yright | The right joystick y value. |