1 /*---------------------------------------------------------------------------* 2 Project: horizon 3 File: hid_Gyroscope.h 4 5 Copyright 2010 Nintendo. 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: $ 14 *---------------------------------------------------------------------------*/ 15 16 /*! @file 17 @brief Gyroscope クラス を定義します。 18 19 */ 20 #ifndef NN_HID_CTR_GYROSCOPE_H_ 21 #define NN_HID_CTR_GYROSCOPE_H_ 22 23 #include <nn/Handle.h> 24 #include <nn/Result.h> 25 #include <nn/types.h> 26 #include <nn/hid/CTR/hid_HidBase.h> 27 28 namespace nn { 29 namespace hid { 30 namespace CTR { 31 32 /*! 33 @brief ジャイロセンサ のサンプリングデータを取得するのに必要なリソースを持つクラスです。有効なインスタンスを得るには @ref nn::hid::CTR::GetGyroscope( ) で参照を得てください。 34 35 WaitSampling( ) または WaitSamplingAny( ) でサンプリングのたびにシグナルされるイベントを待つことができます。 また、実際にサンプリングデータを得るには GyroscopeReader クラスを使用してください。 36 37 */ 38 class Gyroscope : public HidBase 39 { 40 private: Gyroscope()41 Gyroscope() {}; ~Gyroscope()42 virtual ~Gyroscope() {}; 43 44 friend class GyroscopeReader; 45 friend class HidDevices; 46 }; 47 48 } // namespace CTR { 49 } // namespace hid { 50 } // namespace nn { 51 52 #endif //NN_HID_CTR_GYROSCOPE_H_ 53