controller_cont.h 1.53 KB
#ifndef _CONTROLLER_CONT_H_
#define _CONTROLLER_CONT_H_

/**************************************************************************
 *									  *
 *		 Copyright (C) 1995, Silicon Graphics, Inc.		  *
 *									  *
 *  These coded instructions, statements, and computer programs  contain  *
 *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
 *  are protected by Federal copyright law.  They  may  not be disclosed  *
 *  to  third  parties  or copied or duplicated in any form, in whole or  *
 *  in part, without the prior written consent of Silicon Graphics, Inc.  *
 *									  *
 **************************************************************************/

/*---------------------------------------------------------------------*
        Copyright (C) 1998 Nintendo. (Originated by SGI)
        
        $RCSfile: controller_cont.h,v $
        $Revision: 1.1.1.1 $
        $Date: 2002/05/02 03:28:43 $
 *---------------------------------------------------------------------*/

typedef struct {
	u8	dummy;			/* for word aliening */
	u8	txsize;			/* Tx size */
	u8	rxsize;			/* Rx size */
	u8	cmd;			/* commmand */
	u16     button;
	s8      stick_x;
	s8      stick_y;
} __OSContReadFormat; 

extern OSPifRam		__osContPifRam;		/* PIF RAM buffer */
extern u8	 	__osContLastCmd;	/* last pifmacro command */
extern u8		__osMaxControllers;	/* # of connected controllers */

extern void __osPackRequestData(u8 );
extern void __osPackResetData(void );
extern void __osContGetInitData(u8 *, OSContStatus *);

#endif /* _CONTROLLER_CONT_H_ */