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