1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: hid_Api.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: 46347 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_HID_CTR_HID_API_H_ 17 #define NN_HID_CTR_HID_API_H_ 18 19 /* Please see man pages for details 20 21 */ 22 23 #include <nn/Result.h> 24 #include <nn/types.h> 25 #include <nn/hid/CTR/hid_Pad.h> 26 #include <nn/hid/CTR/hid_TouchPanel.h> 27 #include <nn/hid/CTR/hid_Accelerometer.h> 28 #include <nn/hid/CTR/hid_Gyroscope.h> 29 #include <nn/hid/CTR/hid_DebugPad.h> 30 31 namespace nn { 32 namespace hid { 33 namespace CTR { 34 35 namespace detail{ 36 typedef enum _IPCPortType 37 { 38 PORT_SPVR = 0, 39 PORT_USER, 40 NUM_OF_IPC_PORTS 41 } IPCPortType; 42 } 43 44 namespace{ 45 const char *const PORT_NAME_SPVR = "hid:SPVR"; 46 const char *const PORT_NAME_USER = "hid:USER"; 47 } 48 49 50 /* Please see man pages for details 51 52 53 54 */ 55 56 /* Please see man pages for details 57 58 59 60 61 62 63 64 65 66 67 */ 68 nn::Result Initialize( ); 69 70 /* Please see man pages for details 71 72 73 74 75 */ 76 void Finalize( ); 77 78 /* 79 80 */ 81 82 /* Please see man pages for details 83 84 85 86 87 88 89 */ 90 Pad& GetPad( ); 91 92 /* Please see man pages for details 93 94 95 96 97 98 99 */ 100 TouchPanel& GetTouchPanel(); 101 102 /* Please see man pages for details 103 104 105 106 107 108 109 */ 110 Accelerometer& GetAccelerometer(); 111 /* Please see man pages for details 112 113 114 115 116 117 118 */ 119 Gyroscope& GetGyroscope(); 120 121 122 /* Please see man pages for details 123 124 125 126 127 128 129 */ 130 DebugPad& GetDebugPad(); 131 132 } // namespace CTR { 133 } // namespace hid { 134 } // namespace nn { 135 136 137 138 #endif // #ifndef NN_HID_CTR_HID_API_H_ 139