Shinobi Library - Vibration Peripheral Function

pdVibGetInfo

Gets vibration peripheral information

FORMAT

Sint32 pdVibGetInfo(port, *vibinfo)
Uint32 port
PDS_VIBINFO *vibinfo

PARAMETER

 port  Port number 
 vibinfo  Address where vibrating peripheral information is stored 

RETURN

 PDD_VIBERR_OK  Normal end 
 PDD_VIBERR_NO_VIBRATOR  Vibration peripheral is not connected 

DESCRIPTION

Gets information about the vibration peripheral.

The following values can be set for the argument port.

 PDD_PORT_A1  Expansion socket 1 on port A 
 PDD_PORT_A2  Expansion socket 2 on port A 
 PDD_PORT_B1  Expansion socket 1 on port B 
 PDD_PORT_B2  Expansion socket 2 on port B 
 PDD_PORT_C1  Expansion socket 1 on port C 
 PDD_PORT_C2  Expansion socket 2 on port C 
 PDD_PORT_D1  Expansion socket 1 on port D 
 PDD_PORT_D2  Expansion socket 2 on port D 


EXAMPLE

PDD_VIBINFO info;
if (pdVibGetInfo(PDD_PORT_A2, &info) == PDD_VIBERR_OK) {
  /* Success */
}

NOTE

These functions are still in the evaluation version. In the future, specs may be changed.

REFERENCE

pdVibEnumerateUnit()


pdVibGetInfo
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999