##### Shinobi Library - Get Peripheral Data Function

# pdGetPeripheral

Gets the controller button status

### FORMAT

`

  const PDS_PERIPHERAL *pdGetPeripheral( port )
  Uint32 port

`

### PARAMETER

  `port` | Port number

### RETURN

  Pointer of structure that shows the controller button status

### DESCRIPTION

  Gets the status of buttons of peripherals connected to the control port. Results are returned as the PDS_PERIPHERAL structure pointer in the return value.

  The port numbers that are specified in `port` are listed below.

  PDD_PORT_A0 | Control port A
  PDD_PORT_B0 | Control port B
  PDD_PORT_C0 | Control port C
  PDD_PORT_D0 | Control port D

### EXAMPLE

      const PDS_PERIPHERAL *per;
      per = pdGetPeripheral(PDD_PORT_A0);
      if(per > press & PDD_DGT_ST) {
          /* Start botton was pressed */
      	  :
      	  :
      }

pdGetPeripheral

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999