mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
デバッグ用ツール AppJumpChecker に内部関数を使ったノーマルジャンプ機能追加。 バナー付加。 カードアプリのイニシャルコード、TitleID_Lo の表示実装。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2343 b08762b0-b915-fc4b-9d8c-17b2551a87ff
68 lines
2.1 KiB
C
68 lines
2.1 KiB
C
/*---------------------------------------------------------------------------*
|
|
Project: TwlSDK - tests - appjumpTest
|
|
File: common.h
|
|
|
|
Copyright 2008 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.
|
|
|
|
$Date:: $
|
|
$Rev$
|
|
$Author$
|
|
*---------------------------------------------------------------------------*/
|
|
#ifndef COMMON_H_
|
|
#define COMMON_H_
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*===========================================================================*/
|
|
#include <twl.h>
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
定数定義
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
#define KEY_REPEAT_START 25 // キーリピート開始までのフレーム数
|
|
#define KEY_REPEAT_SPAN 10 // キーリピートの間隔フレーム数
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
構造体 定義
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
// キー入力情報
|
|
typedef struct KeyInfo
|
|
{
|
|
u16 cnt; // 未加工入力値
|
|
u16 trg; // 押しトリガ入力
|
|
u16 up; // 離しトリガ入力
|
|
u16 rep; // 押し維持リピート入力
|
|
} KeyInfo;
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
Prototype
|
|
*---------------------------------------------------------------------------*/
|
|
void InitCommon(void);
|
|
|
|
void ReadKey(KeyInfo* pKey);
|
|
|
|
void VBlankIntr(void);
|
|
|
|
/*===========================================================================*/
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* COMMON_H_ */
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
End of file
|
|
*---------------------------------------------------------------------------*/
|