##### Shinobi Library - Video Cable Check Function

# syCblCheckCable

Checks video cable

### FORMAT

`

  SYE_CBL_CABLE syCblCheckCable( void )

`

### PARAMETER

  None

### RETURN

  Cable type

### DESCRIPTION

  Checks the type of cable connected to the AV terminal.

  Return value | Meaning
  SYE_CBL_CABLE_VGA | VGA cable
  SYE_CBL_CABLE_VBS | VBS/S, RF output
  SYE_CBL_CABLE_RGB | RGB cable (Multi21P)
  SYE_CBL_CABLE_RESERVED | SEGA RESERVED

### EXAMPLE

      void displayCable( Sint16 x, Sint16 y )
      {
        SYE_CBL_CABLE cable;
        cable = syCblCheckCable();
        switch( cable ) {
        case SYE_CBL_CABLE_VGA:
          njPrintC( NJM_LOCATION(x,y), "VGA CABLE" );
          break;
        case SYE_CBL_CABLE_VBS:
          njPrintC( NJM_LOCATION(x,y), "AV CABLE" );
          break;
        case SYE_CBL_CABLE_RGB:
          njPrintC( NJM_LOCATION(x,y), "RGB CABLE" );
          break;
        default:
          njPrintC( NJM_LOCATION(x,y), "UNKNOWN CABLE" );
          break;
        }
      }

### NOTE

  This function may be called before `sbInitSystem().` This makes it possible, when starting up an application, to first determine which screen mode will be in use, and then initialize the system. In Dev.Box, this function returns the DIP switch contents that set cable emulation.

### REFERENCE

  `sbInitSystem()
  `

syCblCheckCable

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999