CrossFramework Library
|
00001 00006 #if defined(XBASE_INCLUDED_HID_HPP) 00007 #else 00008 #define XBASE_INCLUDED_HID_HPP 00009 00010 //------------------------------------------------------------ 00011 #include <XBase/NonCopyable.hpp> 00012 #include <XBase/OS.hpp> 00013 00014 #if defined(XBASE_OS_WINDOWS) 00015 #include <XBase/HID_Windows.hpp> 00016 #elif defined(XBASE_OS_MACOSX) 00017 #include <XBase/HID_MacOSX.hpp> 00018 #elif defined(XBASE_OS_IOS) 00019 #include <XBase/HID_iOS.hpp> 00020 #endif 00021 00022 //------------------------------------------------------------ 00023 namespace XBase { 00024 class Display; 00025 class Keyboard; 00026 class Mouse; 00027 class Touch; 00028 } 00029 00030 //------------------------------------------------------------ 00031 namespace XBase { 00033 00034 00037 class HID : public NonCopyable 00038 { 00039 public: 00041 00042 00043 HID( Display& ); 00045 ~HID(); 00047 00049 00050 00051 uint keyboardCount()const; 00052 00054 const Keyboard keyboardAtIndex( uint aIndex )const; 00055 00061 const Keyboard keyboard()const; 00063 00065 00066 00067 uint mouseCount()const; 00068 00070 const Mouse mouseAtIndex( uint aIndex )const; 00071 00077 const Mouse mouse()const; 00079 00081 00082 00087 uint supportedTouchTapCount()const; 00088 00090 uint touchCount()const; 00091 00093 const Touch touchAtIndex( uint aIndex )const; 00094 00100 const Touch touch()const; 00102 00103 //============================================================ 00104 // 内部実装用関数群。 00105 HID_EXT& ext_(); // 拡張。 00106 00107 private: 00108 Display& mDisplay; 00109 HID_EXT mEXT; 00110 }; 00112 } 00113 //------------------------------------------------------------ 00114 #endif 00115 // EOF