1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     kbd.h
4 
5   Copyright (C)2009-2012 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: 46365 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_SAMPLE_DEMOS_DEMO1_KBD_H_
17 #define NN_SAMPLE_DEMOS_DEMO1_KBD_H_
18 
19 #include "device.h"
20 
21 static const s32 KEYBOARD_BUFFER_SIZE = 4 * 1024 * 128;
22 
23 class SwkbdDemo : public Device
24 {
25 public:
26     virtual void Initialize(demo::RenderSystemDrawing* p_RenderSystem);
27     virtual void DrawFrame(void);
28 
29     bool Exec(void);
30 
31 private:
32     demo::RenderSystemDrawing*      mp_RenderSystem;
33     nn::swkbd::Parameter            m_Param;
34     s32                             m_Size;
35     wchar_t                         m_TextBuffer[10];
36     nn::applet::AppletWakeupState   m_WakeupState;
37     NN_PADDING3;
38 
39     static u8                       m_KeyboardBuffer[KEYBOARD_BUFFER_SIZE];
40 };
41 
42 /* NN_SAMPLE_DEMOS_DEMO1_KBD_H_ */
43 #endif
44 
45 /*---------------------------------------------------------------------------*
46   End of file
47  *---------------------------------------------------------------------------*/
48