VPADSetSensorBar

Syntax

#include <cafe/vpad.h>

void VPADSetSensorBar( s32 chan, BOOL on );

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.
on Whether to power on the sensor bar LED on the DRC.

Return Values

If the function succeeds, the return value is zero. If the function fails, the return value is negative.

Description

Powers the DRC sensor bar LED on or off. By default, the DRC sensor bar LED is off.

This API has the automatic ON/OFF function as follows.

When the HOME Button is pressed after the sensor bar LED is set ON by using this API, the HOME Menu is launched and the sensor bar LED becomes OFF automatically and when return back to the game application, the sensor bar LED is set to ON automatically.

And also, when the DRC is disconnected after the sensor bar LED is set ON by using this API, the sensor bar LED becomes OFF automatically and when the DRC is connected again, the sensor bar LED is set to ON automatically.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.
Multiple Cores Do not call this function from more than one Core.

Revision History

2014/09/29 Added the description about the behavior of this API.
2013/05/08 Automated cleanup pass.
2012/07/25 Cleanup Pass
2011/12/02 Initial version.


CONFIDENTIAL