/*---------------------------------------------------------------------------* Project: NintendoWare File: SmTouchPanelStatus.h Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. 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. $Revision: 1 $ *---------------------------------------------------------------------------*/ #ifndef SM_TOUCHPANEL_STATUS_H_ #define SM_TOUCHPANEL_STATUS_H_ //#include #include #include "../include/SmDef.h" //------------------------------------------------------------------------------ // タッチパネルステータス class SmTouchPanelStatus { public: // コンストラクタ SmTouchPanelStatus() : m_IsGrab( false ) { } // hid のタッチパネルステータスを取得する(更新用) nn::hid::CTR::TouchPanelStatus* GetHidTouchPanelStatus() { return &touchPanelStatus; } // 掴む void Grab() { m_IsGrab = true; } // 放す void UnGrab() { m_IsGrab = false; } // 掴まれてるか? bool IsGrab() { return m_IsGrab; } // 座標を取得 u16 GetX() { return touchPanelStatus.x; } u16 GetY() { return touchPanelStatus.y; } private: nn::hid::CTR::TouchPanelStatus touchPanelStatus; bool m_IsGrab; }; #endif // SM_TOUCHPANEL_STATUS_H_