1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: hid_Pad.h 4 5 Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 12449 $ 14 *---------------------------------------------------------------------------*/ 15 16 /*! @file 17 @brief Pad クラスを定義します。 18 19 */ 20 21 #ifndef NN_HID_CTR_HID_PAD_H_ 22 #define NN_HID_CTR_HID_PAD_H_ 23 24 #include <nn/Handle.h> 25 #include <nn/Result.h> 26 #include <nn/types.h> 27 #include <nn/hid/CTR/hid_HidBase.h> 28 29 30 namespace nn { 31 namespace hid { 32 namespace CTR { 33 34 /*! 35 @brief ボタンとアナログスティック のサンプリングデータを取得するのに必要なリソースを持つクラスです。有効なインスタンスを得るには @ref nn::hid::CTR::GetPad( ) で参照を得てください。 36 37 WaitSampling( ) または WaitSamplingAny( ) でサンプリングのたびにシグナルされるイベントを待つことができます。 また、実際にサンプリングデータを得るには PadReader クラスを使用してください。 38 */ 39 class Pad : public HidBase 40 { 41 private: Pad()42 Pad() {} ~Pad()43 ~Pad() {} 44 45 friend class PadReader; 46 friend class HidDevices; 47 }; 48 49 } // namespace CTR { 50 } // namespace hid { 51 } // namespace nn { 52 53 #endif // #ifndef NN_HID_CTR_HID_PAD_H_ 54