X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0836924e6bd51814473ec9036d7bb853a8f15803..3bf2bdfb7d1f680e54e89e55e22ebd5e912bebe8:/src/mac/carbon/hid.cpp?ds=sidebyside diff --git a/src/mac/carbon/hid.cpp b/src/mac/carbon/hid.cpp index 927341fff0..3d17c726bd 100644 --- a/src/mac/carbon/hid.cpp +++ b/src/mac/carbon/hid.cpp @@ -9,7 +9,24 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/defs.h" +// =========================================================================== +// declarations +// =========================================================================== + +// --------------------------------------------------------------------------- +// headers +// --------------------------------------------------------------------------- + +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) +#pragma implementation "hid.h" +#endif + +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif //DARWIN _ONLY_ #ifdef __DARWIN__ @@ -18,6 +35,11 @@ #include "wx/string.h" #include "wx/log.h" + +// --------------------------------------------------------------------------- +// assertion macros +// --------------------------------------------------------------------------- + #define wxFORCECHECK_MSG(arg, msg) \ {\ if (arg) \ @@ -57,6 +79,9 @@ void CFShowTypeIDDescription(CFTypeRef pData) // implementation // ============================================================================ +// --------------------------------------------------------------------------- +// wxHIDDevice +// --------------------------------------------------------------------------- bool wxHIDDevice::Create (const int& nClass, const int& nType) { @@ -208,6 +233,10 @@ wxHIDDevice::~wxHIDDevice() } } +// --------------------------------------------------------------------------- +// wxHIDKeyboard +// --------------------------------------------------------------------------- + enum { WXK_RSHIFT = 400,