/*---------------------------------------------------------------------------*
  Project:  Dolphin VI private API
  File:     viprivate.h

  Copyright 2000 Nintendo.  All rights reserved.

  These coded instructions, statements, and computer programs contain
  proprietary information of Nintendo of America Inc. and/or Nintendo
  Company Ltd., 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 Nintendo.

  $Log: viprivate.h,v $
  Revision 1.1.1.1  2005/12/29 06:53:28  hiratsu
  Initial import.

  Revision 1.1.1.1  2005/05/12 02:41:07  yasuh-to
  dolphinシースツリーから移植

    
    5     03/03/07 18:26 Yasu
    Added __VIGetLatchPosition
    
    4     03/03/04 9:57 Yasu
    Added ray-gun control functions
    
    3     03/02/27 16:32 Hashida
    Added hct/vct -> x/y conversion function.
    
    2     03/02/27 11:43 Hashida
    Added position interrupt functions.
    
    1     9/16/00 2:52a Hashida
    Initial revision
    
  $NoKeywords: $
 *---------------------------------------------------------------------------*/

#ifndef __VIPRIVATE_H__
#define __VIPRIVATE_H__

#ifdef __cplusplus
extern "C" {
#endif

void __VISetAdjustingValues(s16 x, s16 y);
void __VIGetAdjustingValues(s16* x, s16* y);

typedef void (*VIPositionCallback)(s16 x, s16 y);
  
void __VIEnableRawPositionInterrupt(s16 x, s16 y, VIPositionCallback callback);
VIPositionCallback __VIDisableRawPositionInterrupt(void);
void __VIDisplayPositionToXY(u32 hct, u32 vct, s16 *x, s16 *y);
void __VIGetCurrentPosition(s16 *x, s16 *y);
void __VISetLatchMode( u32 mode );
BOOL __VIGetLatch0Position( s16 *px, s16 *py );
BOOL __VIGetLatch1Position( s16 *px, s16 *py );
BOOL __VIGetLatchPosition( u32 port, s16 *px, s16 *py );

#ifdef __cplusplus
}
#endif

#endif  // __VIPRIVATE_H__
