/*---------------------------------------------------------------------------* Project: NintendoWare File: SmTouchPanelStatus.h Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo and/or its licensed developers and are protected by national and international copyright laws. 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. The content herein is highly confidential and should be handled accordingly. $Revision: $ *---------------------------------------------------------------------------*/ #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_