X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14dfb3d25833800976a2681da23c1a8fb9c2955f..43790a0d0386ba63c967545cea7487df2db6e966:/include/wx/utils.h diff --git a/include/wx/utils.h b/include/wx/utils.h index 41577006b3..15684985fb 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -90,22 +90,19 @@ WXDLLIMPEXP_BASE int wxGetOsVersion(int *majorVsn = (int *) NULL, // Return a string with the current date/time WXDLLIMPEXP_BASE wxString wxNow(); -// Return path where wxWindows is installed (mostly useful in Unices) +// Return path where wxWidgets is installed (mostly useful in Unices) WXDLLIMPEXP_BASE const wxChar *wxGetInstallPrefix(); // Return path to wxWin data (/usr/share/wx/%{version}) (Unices) WXDLLIMPEXP_BASE wxString wxGetDataDir(); #if wxUSE_GUI -#if defined(__WXMSW__) || defined(__WXMAC__) - // Get the state of a key (true if pressed, false if not) - // This is generally most useful getting the state of - // Caps Lock, Num Lock and Scroll Lock... - - // Note - There is a X11/GTK version which will be here - // soon - WXDLLEXPORT bool wxGetKeyState(wxKeyCode key); -#endif + +// Get the state of a key (true if pressed, false if not) +// This is generally most useful getting the state of +// the modifier or toggle keys. +WXDLLEXPORT bool wxGetKeyState(wxKeyCode key); + // Don't synthesize KeyUp events holding down a key and producing // KeyDown events with autorepeat. On by default and always on @@ -496,7 +493,7 @@ WXDLLIMPEXP_BASE bool wxYield(); WXDLLIMPEXP_BASE bool wxYieldIfNeeded(); // ---------------------------------------------------------------------------- -// Error message functions used by wxWindows (deprecated, use wxLog) +// Error message functions used by wxWidgets (deprecated, use wxLog) // ---------------------------------------------------------------------------- #if WXWIN_COMPATIBILITY_2_2